mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 03:26:05 -04:00
Merge pull request #163 from kiwix/fix_urlscheme_qtversion
QWebEngineUrlScheme exists only since 5.12.
This commit is contained in:
commit
25da15c2de
@ -1,14 +1,20 @@
|
||||
#include <QtGlobal>
|
||||
|
||||
#include "kiwixapp.h"
|
||||
|
||||
#include <QCommandLineParser>
|
||||
#include <iostream>
|
||||
#include <QWebEngineUrlScheme>
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
||||
#include <QWebEngineUrlScheme>
|
||||
#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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user