23 if (QSortFilterProxyModel::filterAcceptsRow(sourceRow, sourceParent))
25 if (
auto *
const model = qobject_cast<OptionCategoryModel *>(sourceModel())) {
27 return category->matches(
28#
if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
29 filterRegularExpression().pattern()
30#elif (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
31 !filterRegularExpression().pattern().isEmpty() ? filterRegularExpression().pattern() : filterRegExp().pattern()
33 filterRegExp().pattern()