diff --git a/avogadro/qtgui/insertfragmentdialog.cpp b/avogadro/qtgui/insertfragmentdialog.cpp index 65c415d615..dfa0856c1a 100644 --- a/avogadro/qtgui/insertfragmentdialog.cpp +++ b/avogadro/qtgui/insertfragmentdialog.cpp @@ -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