From e8ad1c9c993a98cdeea92dfcec29052654ec807d Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Sun, 20 Jul 2014 21:48:03 +0200 Subject: Added VERSION to app and daemon --- app/pebble.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'app/pebble.cpp') 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("org.pebbled", 0, 1, "PebbledInterface"); - return SailfishApp::main(argc, argv); + QScopedPointer app(SailfishApp::application(argc, argv)); + + QScopedPointer view(SailfishApp::createView()); + view->rootContext()->setContextProperty("APP_VERSION", APP_VERSION); + view->setSource(SailfishApp::pathTo("qml/pebble.qml")); + view->show(); + + return app->exec(); } -- cgit v1.2.3