Changeset View
Changeset View
Standalone View
Standalone View
src/main.cpp
Context not available. | |||||
26 | #include <QtQml> | 26 | #include <QtQml> | ||
---|---|---|---|---|---|
27 | #include <QUrl> | 27 | #include <QUrl> | ||
28 | #include <QColor> | 28 | #include <QColor> | ||
29 | #include "InfoData.h" | ||||
29 | 30 | | |||
30 | #ifdef Q_OS_ANDROID | 31 | #ifdef Q_OS_ANDROID | ||
31 | #include <QtAndroid> | 32 | #include <QtAndroid> | ||
Context not available. | |||||
53 | //qputenv("QML_IMPORT_TRACE", "1"); | 54 | //qputenv("QML_IMPORT_TRACE", "1"); | ||
54 | QQmlApplicationEngine engine; | 55 | QQmlApplicationEngine engine; | ||
55 | 56 | | |||
57 | qmlRegisterType<InfoData>("Data", 1, 0, "InfoData"); | ||||
58 | | ||||
56 | //we want different main files on desktop or mobile | 59 | //we want different main files on desktop or mobile | ||
57 | //very small difference as they as they are subclasses of the same thing | 60 | //very small difference as they as they are subclasses of the same thing | ||
58 | if (qEnvironmentVariableIsSet("QT_QUICK_CONTROLS_MOBILE") && | 61 | if (qEnvironmentVariableIsSet("QT_QUICK_CONTROLS_MOBILE") && | ||
Context not available. |