Skip to content

Commit

Permalink
Switch to QRegularExpression
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <geoff.hutchison@gmail.com>
  • Loading branch information
ghutchis committed Dec 23, 2023
1 parent b065f3e commit 3c98de4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions avogadro/qtgui/insertfragmentdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ void InsertFragmentDialog::filterTextChanged(const QString& newFilter)
return; // no dialog or proxy model to set

// Allow things like "ti" to match "Ti" etc.
QRegExp reg(newFilter, Qt::CaseInsensitive, QRegExp::WildcardUnix);
m_implementation->proxy->setFilterRegExp(reg);
QRegularExpression reg(newFilter, QRegularExpression::CaseInsensitiveOption);
m_implementation->proxy->setFilterRegularExpression(reg);

if (!newFilter.isEmpty()) {
// user interface niceness -- show any file match
Expand Down

0 comments on commit 3c98de4

Please sign in to comment.