aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayerlite.src.d/main.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-06 09:46:52 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-06 09:46:52 +0800
commitcf7eafca1fbc9aae495d7b7d7e1fb4bc92e6819f (patch)
treed1881d513983a345936a547cbc25b8bd1a1f056e /qmidiplayerlite.src.d/main.cpp
parentffd5bf0c99be3e4089886ab4757100474010edb8 (diff)
downloadQMidiPlayer-cf7eafca1fbc9aae495d7b7d7e1fb4bc92e6819f.tar.xz
Sometimes Naïve!
Diffstat (limited to 'qmidiplayerlite.src.d/main.cpp')
-rw-r--r--qmidiplayerlite.src.d/main.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/qmidiplayerlite.src.d/main.cpp b/qmidiplayerlite.src.d/main.cpp
new file mode 100644
index 0000000..1a87b33
--- /dev/null
+++ b/qmidiplayerlite.src.d/main.cpp
@@ -0,0 +1,15 @@
+#include <QApplication>
+#include <QtQml>
+#include <QQmlApplicationEngine>
+#include "qmpcorewrapper.hpp"
+
+int main(int argc, char *argv[])
+{
+ QApplication app(argc, argv);
+ qmlRegisterType<CQMPCoreWrapper>("org.chrisoft.qmpcore",1,0,"CQMPCoreWrapper");
+
+ QQmlApplicationEngine engine;
+ engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
+
+ return app.exec();
+}