diff options
author | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2015-03-11 18:01:41 +0100 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2015-03-11 18:09:40 +0100 |
commit | 7c6ee7f1a24faeafc793414e877bf014743d9cfe (patch) | |
tree | 805b7839234bae16eeac75f33c471e7ee22f0c0f /heimdall-frontend/source/main.cpp | |
parent | Lots of Frontend refactoring with a few bug fixes (diff) | |
download | Heimdall-7c6ee7f1a24faeafc793414e877bf014743d9cfe.tar Heimdall-7c6ee7f1a24faeafc793414e877bf014743d9cfe.tar.gz Heimdall-7c6ee7f1a24faeafc793414e877bf014743d9cfe.tar.bz2 Heimdall-7c6ee7f1a24faeafc793414e877bf014743d9cfe.tar.lz Heimdall-7c6ee7f1a24faeafc793414e877bf014743d9cfe.tar.xz Heimdall-7c6ee7f1a24faeafc793414e877bf014743d9cfe.tar.zst Heimdall-7c6ee7f1a24faeafc793414e877bf014743d9cfe.zip |
Diffstat (limited to 'heimdall-frontend/source/main.cpp')
-rw-r--r-- | heimdall-frontend/source/main.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/heimdall-frontend/source/main.cpp b/heimdall-frontend/source/main.cpp index 53e9f2d..b86631c 100644 --- a/heimdall-frontend/source/main.cpp +++ b/heimdall-frontend/source/main.cpp @@ -20,9 +20,10 @@ // Qt
#include <QApplication>
-#include <QQmlApplicationEngine>
+#include <QtQml>
// Heimdall Frontend
+#include "Firmware.h"
#include "mainwindow.h"
#if defined(QT_STATIC)
@@ -37,10 +38,23 @@ QQmlDebuggingEnabler enabler; using namespace HeimdallFrontend;
+void registerQmlTypes()
+{
+ Firmware::Register();
+
+ DeviceInfo::Register();
+ PlatformInfo::Register();
+ FileInfo::Register();
+
+ PackageData::Register();
+}
+
int main(int argc, char *argv[])
{
QApplication application(argc, argv);
+ registerQmlTypes();
+
QQmlApplicationEngine engine;
engine.load(QUrl(QString("qrc:/main.qml")));
|