X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/38c34eeca315c7be58e65d4d3fb72aaf7b866719..bfc177d3d1bc5a4a241e35d59086e4824e7c0bd3:/src/search/dolphinfacetswidget.cpp diff --git a/src/search/dolphinfacetswidget.cpp b/src/search/dolphinfacetswidget.cpp index ffc07442a..da36caa36 100644 --- a/src/search/dolphinfacetswidget.cpp +++ b/src/search/dolphinfacetswidget.cpp @@ -104,6 +104,11 @@ void DolphinFacetsWidget::changeEvent(QEvent *event) } } +QSize DolphinFacetsWidget::minimumSizeHint() const +{ + return QSize(0, m_typeSelector->minimumHeight()); +} + void DolphinFacetsWidget::resetSearchTerms() { m_typeSelector->setCurrentIndex(0); @@ -277,7 +282,7 @@ void DolphinFacetsWidget::updateTagsMenuItems(const QUrl &, const KFileItemList const bool onlyOneTag = allTags.count() == 1; - for (const QString &tagName : qAsConst(allTags)) { + for (const QString &tagName : std::as_const(allTags)) { QAction *action = tagsMenu->addAction(QIcon::fromTheme(QStringLiteral("tag")), tagName); action->setCheckable(true); action->setChecked(m_searchTags.contains(tagName)); @@ -303,3 +308,5 @@ void DolphinFacetsWidget::updateTagsMenuItems(const QUrl &, const KFileItemList updateTagsSelector(); } + +#include "moc_dolphinfacetswidget.cpp"