forked from qt-creator/qt-creator
Port QtCreator over to use filterRegularExpression
QSortFilterProxyModel::filterRegExp is going to go away in Qt6, so port over to use QRegularExpression instead. This required some changes where setFilterWildcard/FixedString() was being used, as those would instantiate QRegExp based filters in Qt 5, and will use QRegularExpression in Qt 6. Use the generic setFilterRegularExpression here, to keep things portable between 5 and 6. Change-Id: I6379be781aa3821b10ba783c088f82c1a0970911 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -106,7 +106,7 @@ BranchView::BranchView() :
|
||||
auto filterEdit = new Utils::FancyLineEdit(this);
|
||||
filterEdit->setFiltering(true);
|
||||
connect(filterEdit, &Utils::FancyLineEdit::textChanged,
|
||||
m_filterModel, QOverload<const QString &>::of(&BranchFilterModel::setFilterRegExp));
|
||||
m_filterModel, QOverload<const QString &>::of(&BranchFilterModel::setFilterRegularExpression));
|
||||
auto layout = new QVBoxLayout(this);
|
||||
layout->addWidget(filterEdit);
|
||||
layout->addWidget(m_repositoryLabel);
|
||||
|
||||
Reference in New Issue
Block a user