forked from qt-creator/qt-creator
Core: Fix filter of variable chooser
Fixes: QTCREATORBUG-24499 Change-Id: I787fc4342556d7062a1de5e7cb52d9d48532e719 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -550,7 +550,9 @@ void VariableChooserPrivate::updatePositionAndShow(bool)
|
|||||||
|
|
||||||
void VariableChooserPrivate::updateFilter(const QString &filterText)
|
void VariableChooserPrivate::updateFilter(const QString &filterText)
|
||||||
{
|
{
|
||||||
m_sortModel->setFilterRegularExpression(QRegularExpression::wildcardToRegularExpression(filterText));
|
const QString pattern = QRegularExpression::escape(filterText);
|
||||||
|
m_sortModel->setFilterRegularExpression(
|
||||||
|
QRegularExpression(pattern, QRegularExpression::CaseInsensitiveOption));
|
||||||
m_variableTree->expandAll();
|
m_variableTree->expandAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user