X-Git-Url: http://git.maemo.org/git/?p=googlelatitude;a=blobdiff_plain;f=latitudeqml.cpp;fp=latitudeqml.cpp;h=0dd7af151299c9badcbce871f8823ad5238dd627;hp=0000000000000000000000000000000000000000;hb=05be3d4e9145560968c3afc78c1fcca644cc7a9e;hpb=acfccb1f63dd621809581c09b3f9690e3b2e50f2 diff --git a/latitudeqml.cpp b/latitudeqml.cpp new file mode 100644 index 0000000..0dd7af1 --- /dev/null +++ b/latitudeqml.cpp @@ -0,0 +1,15 @@ +#include "latitudeqml.h" +#include + +LatitudeQML::LatitudeQML(QDeclarativeView *parent) : + QDeclarativeView(parent), + latitude(this), + gps(this) { + qDebug() << "* LatitudeQML::LatitudeQML"; + + rootContext()->setContextProperty("latitude", &latitude); + rootContext()->setContextProperty("gps", &gps); + setSource(QUrl("qrc:/qml/main.qml")); + + latitude.getAccess(); +}