From 1e327a6d6d5eac09f5692d9091043e87ea688e5d Mon Sep 17 00:00:00 2001 From: Javier Date: Tue, 13 Jan 2015 11:29:11 +0100 Subject: initial import --- src/finesketch.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/finesketch.cpp (limited to 'src/finesketch.cpp') diff --git a/src/finesketch.cpp b/src/finesketch.cpp new file mode 100644 index 0000000..1a5c45f --- /dev/null +++ b/src/finesketch.cpp @@ -0,0 +1,26 @@ +#include +#include +#include +#include +#include "stylus.h" + +int main(int argc, char *argv[]) +{ + QGuiApplication *app = SailfishApp::application(argc, argv); + QQuickView *view = SailfishApp::createView(); + + Stylus *stylus = new Stylus(); + stylus->connectDevice("F4:6A:BC:10:4F:E9"); + + view->rootContext()->setContextProperty("stylus", stylus); + view->setSource(SailfishApp::pathTo("qml/finesketch.qml")); + + view->show(); + + int res = app->exec(); + + delete stylus; + + return res; +} + -- cgit v1.2.3