]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/infosidebarpage.cpp
Assure that tabs always have a text. If the file name is empty, use the protocol...
[dolphin.git] / src / infosidebarpage.cpp
index d2652e0d100763c4566e7751d57116b707bee5a0..002b1ffdddea3f6e6143921f043f2ad7a3eb41db 100644 (file)
@@ -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));
@@ -347,7 +350,7 @@ void InfoSidebarPage::showMetaInfo()
             m_metaDataWidget->setFiles(urls);
         }
 
-        unsigned long int totalSize = 0;
+        quint64 totalSize = 0;
         foreach (const KFileItem& item, m_selection) {
             // Only count the size of files, not dirs to match what
             // DolphinViewContainer::selectionStatusBarText() does.