Replace QRegExp with QRegularExpression

This commit is contained in:
Jonas Kvinge
2020-07-18 04:05:07 +02:00
parent cf5259e218
commit e5b3df41e9
25 changed files with 102 additions and 96 deletions

View File

@@ -31,7 +31,7 @@
#include <QVariant>
#include <QList>
#include <QSet>
#include <QRegExp>
#include <QRegularExpression>
#include <QString>
#include <QStringList>
#include <QUrl>
@@ -370,7 +370,7 @@ QString ContextAlbumsModel::SortText(QString text) {
else {
text = text.toLower();
}
text = text.remove(QRegExp("[^\\w ]"));
text = text.remove(QRegularExpression("[^\\w ]"));
return text;