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;