#ifdef QT_QML_DEBUG #include #endif #include #include "imageuploader.h" int main(int argc, char *argv[]) { QScopedPointer app(SailfishApp::application(argc, argv)); QScopedPointer view(SailfishApp::createView()); QQmlContext *context = view.data()->rootContext(); qmlRegisterType("harbour.tooter.Uploader", 1, 0, "ImageUploader"); QQmlEngine* engine = view->engine(); QObject::connect(engine, SIGNAL(quit()), app.data(), SLOT(quit())); view->setSource(SailfishApp::pathTo("qml/harbour-tooter.qml")); view->show(); return app->exec(); }