Skip to content

Commit

Permalink
Port QRegExp to QRegularExpression
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew J. Milner <[email protected]>
  • Loading branch information
matterhorn103 committed Sep 16, 2024
1 parent ab4b00b commit 6b0cc8f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions avogadro/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2356,10 +2356,12 @@ void MainWindow::registerMoleQueue()
StringList exts = ffm.fileExtensions(FileFormat::Read | FileFormat::File);

// Create patterns list
QList<QRegExp> patterns;
QList<QRegularExpression> 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:
Expand Down

0 comments on commit 6b0cc8f

Please sign in to comment.