From b2416a591e641e242234d041797175dc3bc5e61d Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 27 May 2019 17:18:33 +0200 Subject: [PATCH] QWebEngineUrlScheme exists only since 5.12. As we are compiling using 5.11 on windows ci, we need to do conditional compiling. --- src/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 157b341..edbcabb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,14 +1,20 @@ +#include + #include "kiwixapp.h" #include #include -#include +#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0) + #include +#endif int main(int argc, char *argv[]) { QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0) QWebEngineUrlScheme scheme("zim"); QWebEngineUrlScheme::registerScheme(scheme); +#endif KiwixApp a(argc, argv); QCommandLineParser parser;