┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-05-29 11:44:28 +0000
committerPeter Penz <[email protected]>2010-05-29 11:44:28 +0000
commitc62cb08d1400bc5a084638e8ae467303d343a92c (patch)
tree37271f9431d69f4915dd2be3e51848119a01a441 /src/panels
parentdb8c956b345803022259388be5457d2f1b524548 (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')
-rw-r--r--src/panels/information/informationpanel.cpp4
-rw-r--r--src/panels/information/informationpanelcontent.cpp3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/panels/information/informationpanel.cpp b/src/panels/information/informationpanel.cpp
index 82b52e4f6..f15cf05d5 100644
--- a/src/panels/information/informationpanel.cpp
+++ b/src/panels/information/informationpanel.cpp
@@ -20,6 +20,7 @@
#include "informationpanel.h"
#include <kdirnotify.h>
#include <QShowEvent>
+#include <QVBoxLayout>
#include "informationpanelcontent.h"
InformationPanel::InformationPanel(QWidget* parent) :
@@ -323,6 +324,9 @@ void InformationPanel::init()
m_content = new InformationPanelContent(this);
connect(m_content, SIGNAL(urlActivated(KUrl)), this, SIGNAL(urlActivated(KUrl)));
+
+ QVBoxLayout* layout = new QVBoxLayout(this);
+ layout->addWidget(m_content);
m_initialized = true;
}
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()