From: Peter Penz Date: Wed, 28 May 2008 19:55:42 +0000 (+0000) Subject: assure that the preview widget of the information bar gets not overlapped by other... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/b445156dd40a16877058f8228900679cb27aa4cc assure that the preview widget of the information bar gets not overlapped by other widgets when having a very small height BUG: 162674 svn path=/trunk/KDE/kdebase/apps/; revision=813780 --- diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp index cb90fce3e..002b1ffdd 100644 --- a/src/infosidebarpage.cpp +++ b/src/infosidebarpage.cpp @@ -76,6 +76,7 @@ InfoSidebarPage::InfoSidebarPage(QWidget* parent) : m_nameLabel->setFont(font); m_nameLabel->setAlignment(Qt::AlignHCenter); m_nameLabel->setWordWrap(true); + m_nameLabel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); // preview m_preview = new PixmapViewer(this); @@ -85,11 +86,13 @@ InfoSidebarPage::InfoSidebarPage(QWidget* parent) : if (MetaDataWidget::metaDataAvailable()) { // rating, comment and tags m_metaDataWidget = new MetaDataWidget(this); + m_metaDataWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); } // general meta text information m_metaTextLabel = new MetaTextLabel(this); m_metaTextLabel->setMinimumWidth(spacing); + m_metaTextLabel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); layout->addWidget(m_nameLabel); layout->addWidget(new KSeparator(this));