-#ifdef QT_QML_DEBUG
#include <QtQuick>
+#ifdef QT_QML_DEBUG
#include <QDebug>
#endif
#include "journeymodel.h"
#include "status.h"
#include "settings.h"
+#include "imageprovider.h"
#include "harbour-pedalo.h"
journeys.importFromFile(file);
QScopedPointer<QQuickView> view(SailfishApp::createView());
+ view->engine()->addImageProvider(QLatin1String("pedalo"), new ImageProvider(Settings::getInstance()));
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);