summaryrefslogtreecommitdiff
path: root/app/pebble.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'app/pebble.cpp')
-rw-r--r--app/pebble.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/pebble.cpp b/app/pebble.cpp
index b2f4d09..44f1aeb 100644
--- a/app/pebble.cpp
+++ b/app/pebble.cpp
@@ -39,6 +39,13 @@ int main(int argc, char *argv[])
// Register Pebble daemon interface object on QML side
qmlRegisterType<PebbledInterface>("org.pebbled", 0, 1, "PebbledInterface");
- return SailfishApp::main(argc, argv);
+ QScopedPointer<QGuiApplication> app(SailfishApp::application(argc, argv));
+
+ QScopedPointer<QQuickView> view(SailfishApp::createView());
+ view->rootContext()->setContextProperty("APP_VERSION", APP_VERSION);
+ view->setSource(SailfishApp::pathTo("qml/pebble.qml"));
+ view->show();
+
+ return app->exec();
}