]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/search/dolphinfacetswidget.cpp
GIT_SILENT Update Appstream for new release
[dolphin.git] / src / search / dolphinfacetswidget.cpp
index ffc07442a2bbecb55e857ffe3090cc29748ab96a..da36caa36d5bd6759ca5cfa097571db2b1dc3e51 100644 (file)
@@ -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"