1 #include "latitudeqml.h"
2 #include <QtDeclarative/QDeclarativeContext>
4 LatitudeQML::LatitudeQML(QDeclarativeView *parent) :
5 QDeclarativeView(parent),
8 demonioOpt("/opt/LatitudeUpdaterDaemon/bin/LatitudeUpdaterDaemon"),
9 demonioSdk(QCoreApplication::applicationDirPath()+
11 "LatitudeUpdaterDaemon"),
13 qDebug() << "* LatitudeQML::LatitudeQML";
15 rootContext()->setContextProperty("latitude", &latitude);
16 rootContext()->setContextProperty("gps", &gps);
17 rootContext()->setContextProperty("demonio", this);
18 setSource(QUrl("qrc:/qml/main.qml"));