From 6b0cc8f9fca72363f42e45f8b5204662a52853e4 Mon Sep 17 00:00:00 2001 From: "Matthew J. Milner" Date: Tue, 17 Sep 2024 00:06:05 +0200 Subject: [PATCH] Port QRegExp to QRegularExpression Signed-off-by: Matthew J. Milner --- avogadro/mainwindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/avogadro/mainwindow.cpp b/avogadro/mainwindow.cpp index 51f12e5e..d666bba5 100644 --- a/avogadro/mainwindow.cpp +++ b/avogadro/mainwindow.cpp @@ -2356,10 +2356,12 @@ void MainWindow::registerMoleQueue() StringList exts = ffm.fileExtensions(FileFormat::Read | FileFormat::File); // Create patterns list - QList patterns; + QList patterns; for (auto it = exts.begin(), itEnd = exts.end(); it != itEnd; ++it) { - patterns << QRegExp(extensionToWildCard(QString::fromStdString(*it)), - Qt::CaseInsensitive, QRegExp::Wildcard); + patterns << QRegularExpression( + QRegularExpression::wildcardToRegularExpression( + extensionToWildCard(QString::fromStdString(*it))), + QRegularExpression::CaseInsensitive); } // Register the executable: