forked from walokra/colordots
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
executable file
·31 lines (23 loc) · 782 Bytes
/
main.cpp
File metadata and controls
executable file
·31 lines (23 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifdef QT_QML_DEBUG
#include <QtQuick>
#endif
#include <QScopedPointer>
#include <QQuickView>
#include <QQmlEngine>
#include <QGuiApplication>
#include <QQmlContext>
#include <QtQml>
#include <sailfishapp.h>
int main(int argc, char *argv[])
{
QScopedPointer<QGuiApplication> app(SailfishApp::application(argc, argv));
QScopedPointer<QQuickView> view(SailfishApp::createView());
app->setApplicationName("Colourdots");
app->setOrganizationName("harbour-colourdots");
app->setApplicationVersion(APP_VERSION);
view->setSource(SailfishApp::pathTo("qml/main.qml"));
view->rootContext()->setContextProperty("APP_VERSION", APP_VERSION);
view->rootContext()->setContextProperty("APP_RELEASE", APP_RELEASE);
view->show();
return app->exec();
}