aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/imports/winextras/winextras.pro2
-rw-r--r--src/winextras/qwinjumplist.cpp3
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.