From: Peter Penz Date: Wed, 7 Nov 2007 21:06:37 +0000 (+0000) Subject: use a smaller font for the meta information of the information sidebar X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/2a6dbbd17547c63d869727d0c680744966ae742f use a smaller font for the meta information of the information sidebar svn path=/trunk/KDE/kdebase/apps/; revision=734026 --- diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp index 4716ea2d5..8fbb741cf 100644 --- a/src/infosidebarpage.cpp +++ b/src/infosidebarpage.cpp @@ -80,6 +80,7 @@ InfoSidebarPage::InfoSidebarPage(QWidget* parent) : m_infoLabel->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); m_infoLabel->setTextFormat(Qt::RichText); m_infoLabel->setWordWrap(true); + m_infoLabel->setFont(KGlobalSettings::smallestReadableFont()); if (MetaDataWidget::metaDataAvailable()) { m_metadataWidget = new MetaDataWidget(this); @@ -90,8 +91,8 @@ InfoSidebarPage::InfoSidebarPage(QWidget* parent) : layout->addWidget(m_nameLabel); layout->addWidget(new KSeparator(this)); layout->addWidget(m_infoLabel); - layout->addWidget(new KSeparator(this)); - if (m_metadataWidget) { + if (m_metadataWidget != 0) { + layout->addWidget(new KSeparator(this)); layout->addWidget(m_metadataWidget); } // ensure that widgets in the information side bar are aligned towards the top