X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=src%2Fharbour-pedalo.cpp;h=a4218cd2e1e68d08a340c11e4c836360e6ee4218;hp=6346ad3c5bad459d29085d172f486480b09847c9;hb=e5b6de629d0585d29f0591deec4afec33f44f20c;hpb=d42485b9c24c02503080b05e5e466112f47c909a diff --git a/src/harbour-pedalo.cpp b/src/harbour-pedalo.cpp index 6346ad3..a4218cd 100644 --- a/src/harbour-pedalo.cpp +++ b/src/harbour-pedalo.cpp @@ -1,5 +1,5 @@ -#ifdef QT_QML_DEBUG #include +#ifdef QT_QML_DEBUG #include #endif @@ -47,6 +47,11 @@ int main(int argc, char *argv[]) view->setSource(SailfishApp::pathTo("qml/harbour-pedalo.qml")); QQmlContext *ctxt = view->rootContext(); + ctxt->setContextProperty("version", VERSION); + qDebug() << "harbour-pedalo VERSION string: " << VERSION; + qDebug() << "VERSION_MAJOR: " << VERSION_MAJOR; + qDebug() << "VERSION_MINOR: " << VERSION_MINOR; + qDebug() << "VERSION_BUILD: " << VERSION_BUILD; ctxt->setContextProperty("journeymodel", &journeys); ctxt->setContextProperty("currentStatus", ¤tStatus);