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