diff options
| author | Peter Penz <[email protected]> | 2010-05-29 11:44:28 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-05-29 11:44:28 +0000 |
| commit | c62cb08d1400bc5a084638e8ae467303d343a92c (patch) | |
| tree | 37271f9431d69f4915dd2be3e51848119a01a441 /src/panels/information/informationpanelcontent.cpp | |
| parent | db8c956b345803022259388be5457d2f1b524548 (diff) | |
Fix the nasty layout reparenting by adding the InformationPanelContent into a layout. Thanks to Sebastian Trüg for the hint!
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=1132028
Diffstat (limited to 'src/panels/information/informationpanelcontent.cpp')
| -rw-r--r-- | src/panels/information/informationpanelcontent.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/panels/information/informationpanelcontent.cpp b/src/panels/information/informationpanelcontent.cpp index 540b971e8..df4fa4641 100644 --- a/src/panels/information/informationpanelcontent.cpp +++ b/src/panels/information/informationpanelcontent.cpp @@ -74,7 +74,7 @@ InformationPanelContent::InformationPanelContent(QWidget* parent) : connect(m_outdatedPreviewTimer, SIGNAL(timeout()), this, SLOT(markOutdatedPreview())); - QVBoxLayout* layout = new QVBoxLayout; + QVBoxLayout* layout = new QVBoxLayout(this); layout->setSpacing(KDialog::spacingHint()); // preview @@ -136,7 +136,6 @@ InformationPanelContent::InformationPanelContent(QWidget* parent) : layout->addWidget(m_nameLabel); layout->addWidget(new KSeparator()); layout->addWidget(m_metaDataArea); - parent->setLayout(layout); } InformationPanelContent::~InformationPanelContent() |
