qt: replace QRegExp with QRegularExpression

QRegExp is removed in Qt6
This commit is contained in:
selsta 2022-05-07 18:10:25 +02:00
parent 2e2ae5c88f
commit 7b729fc885
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E
3 changed files with 2 additions and 4 deletions

View file

@ -36,7 +36,6 @@
#include <QObject>
#include <QDesktopWidget>
#include <QScreen>
#include <QRegExp>
#include <QThread>
#include <version.h>

View file

@ -1,4 +1,3 @@
#include <QRegExp>
#include <QMessageBox>
#include <QPixmap>
#include <QTranslator>

View file

@ -30,7 +30,7 @@
#define UTILS_H
#include <QtCore>
#include <QRegExp>
#include <QRegularExpression>
#include <QApplication>
bool fileExists(QString path);
@ -42,7 +42,7 @@ QString getAccountName();
QString xdgMime();
void registerXdgMime();
#endif
const static QRegExp reURI = QRegExp("^\\w+:\\/\\/([\\w+\\-?\\-_\\-=\\-&]+)");
const static QRegularExpression reURI = QRegularExpression("^\\w+:\\/\\/([\\w+\\-?\\-_\\-=\\-&]+)");
QString randomUserAgent();
#endif // UTILS_H