From: Jean-Marc Lasgouttes Date: Fri, 3 Mar 2023 10:17:58 +0000 (+0100) Subject: Remove two remaining snippets from the QRegExp era. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=309f8f4b;p=features.git Remove two remaining snippets from the QRegExp era. --- diff --git a/src/frontends/qt/CategorizedCombo.cpp b/src/frontends/qt/CategorizedCombo.cpp index 43ce6cbdf7..ac4b45068f 100644 --- a/src/frontends/qt/CategorizedCombo.cpp +++ b/src/frontends/qt/CategorizedCombo.cpp @@ -287,11 +287,7 @@ void CategorizedCombo::Private::setFilter(QString const & s) lastSel_ = filterModel_->mapToSource(filterModel_->index(sel, 0)).row(); filter_ = s; -#if QT_VERSION < 0x060000 - filterModel_->setFilterRegExp(charFilterRegExp(filter_)); -#else filterModel_->setFilterRegularExpression(charFilterRegExp(filter_)); -#endif countCategories(); // restore old selection diff --git a/src/frontends/qt/LayoutBox.cpp b/src/frontends/qt/LayoutBox.cpp index 573ec2784c..ab2cd7a085 100644 --- a/src/frontends/qt/LayoutBox.cpp +++ b/src/frontends/qt/LayoutBox.cpp @@ -320,11 +320,7 @@ void LayoutBox::Private::setFilter(QString const & s) lastSel_ = filterModel_->mapToSource(filterModel_->index(sel, 0)).row(); filter_ = s; -#if QT_VERSION < 0x060000 - filterModel_->setFilterRegExp(charFilterRegExp(filter_)); -#else filterModel_->setFilterRegularExpression(charFilterRegExp(filter_)); -#endif countCategories(); // restore old selection