diff options
| author | Robert Knight <[email protected]> | 2007-04-04 18:23:29 +0000 |
|---|---|---|
| committer | Robert Knight <[email protected]> | 2007-04-04 18:23:29 +0000 |
| commit | 9ded114ceb0b021aed051f99cc7dd2ba28490782 (patch) | |
| tree | 592c377f3855c336b24b57b16ff3c56c8f176801 /src/infosidebarpage.cpp | |
| parent | 3993f382945d92c8b992753eaa764a9e202f0ec9 (diff) | |
Use the Qt layout facilities correctly to align widgets in the information side bar towars the top. Fixes comment-box being huge when KMetaData is available.
svn path=/trunk/KDE/kdebase/apps/; revision=650506
Diffstat (limited to 'src/infosidebarpage.cpp')
| -rw-r--r-- | src/infosidebarpage.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp index 889fd21f1..19da30c23 100644 --- a/src/infosidebarpage.cpp +++ b/src/infosidebarpage.cpp @@ -103,10 +103,6 @@ InfoSidebarPage::InfoSidebarPage(QWidget* parent) : m_actionBox = new KVBox(this); m_actionBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); - // Add a dummy widget with no restriction regarding a vertical resizing. - // This assures that information is always top aligned. - QWidget* dummy = new QWidget(this); - layout->addItem(new QSpacerItem(spacing, spacing, QSizePolicy::Preferred, QSizePolicy::Fixed)); layout->addWidget(m_preview); layout->addWidget(m_name); @@ -118,7 +114,8 @@ InfoSidebarPage::InfoSidebarPage(QWidget* parent) : layout->addWidget( new KSeparator( this ) ); } layout->addWidget(m_actionBox); - layout->addWidget(dummy); + // ensure that widgets in the information side bar are aligned towards the top + layout->addStretch(1); setLayout(layout); } |
