X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/df55b9d89f0b064f1dfa0fd2ca0f6bd08ea0c8e4..b2fb35585dfa3161ecbc1f5a1734c5dbac5abe8b:/src/infosidebarpage.cpp diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp index a9cc356d4..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)); @@ -152,6 +155,7 @@ void InfoSidebarPage::requestDelayedItemInfo(const KFileItem& item) // The cursor is above the viewport. If files are selected, // show information regarding the selection. if (m_selection.size() > 0) { + m_pendingPreview = false; m_timer->start(TimerDelay); } } else if (!item.url().isEmpty()) { @@ -346,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.