mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Remove two remaining snippets from the QRegExp era.
This commit is contained in:
parent
6251afec70
commit
309f8f4b40
@ -287,11 +287,7 @@ void CategorizedCombo::Private::setFilter(QString const & s)
|
|||||||
lastSel_ = filterModel_->mapToSource(filterModel_->index(sel, 0)).row();
|
lastSel_ = filterModel_->mapToSource(filterModel_->index(sel, 0)).row();
|
||||||
|
|
||||||
filter_ = s;
|
filter_ = s;
|
||||||
#if QT_VERSION < 0x060000
|
|
||||||
filterModel_->setFilterRegExp(charFilterRegExp(filter_));
|
|
||||||
#else
|
|
||||||
filterModel_->setFilterRegularExpression(charFilterRegExp(filter_));
|
filterModel_->setFilterRegularExpression(charFilterRegExp(filter_));
|
||||||
#endif
|
|
||||||
countCategories();
|
countCategories();
|
||||||
|
|
||||||
// restore old selection
|
// restore old selection
|
||||||
|
@ -320,11 +320,7 @@ void LayoutBox::Private::setFilter(QString const & s)
|
|||||||
lastSel_ = filterModel_->mapToSource(filterModel_->index(sel, 0)).row();
|
lastSel_ = filterModel_->mapToSource(filterModel_->index(sel, 0)).row();
|
||||||
|
|
||||||
filter_ = s;
|
filter_ = s;
|
||||||
#if QT_VERSION < 0x060000
|
|
||||||
filterModel_->setFilterRegExp(charFilterRegExp(filter_));
|
|
||||||
#else
|
|
||||||
filterModel_->setFilterRegularExpression(charFilterRegExp(filter_));
|
filterModel_->setFilterRegularExpression(charFilterRegExp(filter_));
|
||||||
#endif
|
|
||||||
countCategories();
|
countCategories();
|
||||||
|
|
||||||
// restore old selection
|
// restore old selection
|
||||||
|
Loading…
Reference in New Issue
Block a user