mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 00:07:51 +00:00
qt: replace QRegExp with QRegularExpression
QRegExp is removed in Qt6
This commit is contained in:
parent
2e2ae5c88f
commit
7b729fc885
3 changed files with 2 additions and 4 deletions
|
@ -36,7 +36,6 @@
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QDesktopWidget>
|
#include <QDesktopWidget>
|
||||||
#include <QScreen>
|
#include <QScreen>
|
||||||
#include <QRegExp>
|
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
|
|
||||||
#include <version.h>
|
#include <version.h>
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#include <QRegExp>
|
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
#include <QTranslator>
|
#include <QTranslator>
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#define UTILS_H
|
#define UTILS_H
|
||||||
|
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#include <QRegExp>
|
#include <QRegularExpression>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
bool fileExists(QString path);
|
bool fileExists(QString path);
|
||||||
|
@ -42,7 +42,7 @@ QString getAccountName();
|
||||||
QString xdgMime();
|
QString xdgMime();
|
||||||
void registerXdgMime();
|
void registerXdgMime();
|
||||||
#endif
|
#endif
|
||||||
const static QRegExp reURI = QRegExp("^\\w+:\\/\\/([\\w+\\-?\\-_\\-=\\-&]+)");
|
const static QRegularExpression reURI = QRegularExpression("^\\w+:\\/\\/([\\w+\\-?\\-_\\-=\\-&]+)");
|
||||||
QString randomUserAgent();
|
QString randomUserAgent();
|
||||||
|
|
||||||
#endif // UTILS_H
|
#endif // UTILS_H
|
||||||
|
|
Loading…
Reference in a new issue