mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-24 04:32:15 -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 "kiwixapp.h"
|
||||||
|
|
||||||
#include <QCommandLineParser>
|
#include <QCommandLineParser>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <QWebEngineUrlScheme>
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
||||||
|
#include <QWebEngineUrlScheme>
|
||||||
|
#endif
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
||||||
QWebEngineUrlScheme scheme("zim");
|
QWebEngineUrlScheme scheme("zim");
|
||||||
QWebEngineUrlScheme::registerScheme(scheme);
|
QWebEngineUrlScheme::registerScheme(scheme);
|
||||||
|
#endif
|
||||||
KiwixApp a(argc, argv);
|
KiwixApp a(argc, argv);
|
||||||
|
|
||||||
QCommandLineParser parser;
|
QCommandLineParser parser;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user