diff options
author | Liang Qi <liang.qi@qt.io> | 2017-06-07 11:58:00 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2017-06-07 11:58:00 +0000 |
commit | 4cccbfae21b98afb0cebbce8f586f08e3bef3e52 (patch) | |
tree | 1b29500365f2cd946acb734944a150a56a8cf9b3 /src | |
parent | 0964f2a9aff8b7bcc4ae81b8a21507cfbee04cee (diff) | |
parent | 2b6b4b7d90c7822a90e0e9c92ee812c897e709e1 (diff) |
Merge "Merge remote-tracking branch 'origin/5.9' into dev" into refs/staging/dev
Diffstat (limited to 'src')
-rw-r--r-- | src/imports/winextras/winextras.pro | 2 | ||||
-rw-r--r-- | src/winextras/qwinjumplist.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/imports/winextras/winextras.pro b/src/imports/winextras/winextras.pro index 0d6ec55..19f8d2b 100644 --- a/src/imports/winextras/winextras.pro +++ b/src/imports/winextras/winextras.pro @@ -41,6 +41,6 @@ OTHER_FILES += \ JumpListDestination.qml \ JumpListSeparator.qml -qtConfig(dynamicgl):LIBS_PRIVATE += -luser32 +!qtHaveModule(opengl)|qtConfig(dynamicgl):LIBS_PRIVATE += -luser32 load(qml_plugin) diff --git a/src/winextras/qwinjumplist.cpp b/src/winextras/qwinjumplist.cpp index a277a74..12fa2e5 100644 --- a/src/winextras/qwinjumplist.cpp +++ b/src/winextras/qwinjumplist.cpp @@ -60,6 +60,7 @@ #include <QDir> #include <QtCore/QDebug> #include <QCoreApplication> +#include <QRegularExpression> #include <qt_windows.h> #include <propvarutil.h> @@ -95,7 +96,7 @@ static QString createArguments(const QStringList &arguments) for (int i=0; i<arguments.size(); ++i) { QString tmp = arguments.at(i); // Quotes are escaped and their preceding backslashes are doubled. - tmp.replace(QRegExp(QLatin1String("(\\\\*)\"")), QLatin1String("\\1\\1\\\"")); + tmp.replace(QRegularExpression(QLatin1String("(\\\\*)\"")), QLatin1String("\\1\\1\\\"")); if (tmp.isEmpty() || tmp.contains(QLatin1Char(' ')) || tmp.contains(QLatin1Char('\t'))) { // The argument must not end with a \ since this would be interpreted // as escaping the quote -- rather put the \ behind the quote: e.g. |