some style changes to settings

This commit is contained in:
fourtf
2019-09-03 11:15:38 +02:00
parent 0ada2e51c6
commit f7ee778af6
5 changed files with 104 additions and 91 deletions
@@ -40,6 +40,22 @@ bool filterItemsRec(QObject *object, const QString &query)
return false;
}());
}
else if (auto x = dynamic_cast<QTabWidget *>(child); x)
{
for (int i = 0; i < x->count(); i++)
{
bool tabAny{};
if (x->tabText(i).contains(query, Qt::CaseInsensitive))
{
tabAny = true;
}
auto widget = x->widget(i);
tabAny |= filterItemsRec(widget, query);
any |= tabAny;
}
}
else
{
any |= filterItemsRec(child, query);