X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=src%2Fharbour-pedalo.cpp;fp=src%2Fharbour-pedalo.cpp;h=a4218cd2e1e68d08a340c11e4c836360e6ee4218;hp=d7da21f1404ebc3ac3822d73d535b640b60dbd64;hb=e5b6de629d0585d29f0591deec4afec33f44f20c;hpb=baffcf729d26af75702d28861d1d4a69d0401db1 diff --git a/src/harbour-pedalo.cpp b/src/harbour-pedalo.cpp index d7da21f..a4218cd 100644 --- a/src/harbour-pedalo.cpp +++ b/src/harbour-pedalo.cpp @@ -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);