forked from walokra/ampiaiskala
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
36 lines (25 loc) · 891 Bytes
/
Copy pathmain.cpp
File metadata and controls
36 lines (25 loc) · 891 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
32
33
34
35
36
#ifdef QT_QML_DEBUG
#include <QtQuick>
#endif
#include <QScopedPointer>
#include <QQuickView>
#include <QQmlEngine>
#include <QGuiApplication>
#include <QQmlContext>
#include <QtQml>
#include <sailfishapp.h>
#include "src/feedloader.h"
int main(int argc, char *argv[])
{
QScopedPointer<QGuiApplication> app(SailfishApp::application(argc, argv));
QScopedPointer<QQuickView> view(SailfishApp::createView());
view->rootContext()->setContextProperty("APP_VERSION", APP_VERSION);
view->rootContext()->setContextProperty("APP_RELEASE", APP_RELEASE);
qmlRegisterType<FeedLoader>("harbour.ampiaiskala", 1, 0, "FeedLoader");
app->setApplicationName("Ampiaiskala");
app->setOrganizationName("harbour-ampiaiskala");
app->setApplicationVersion(APP_VERSION);
view->setSource(SailfishApp::pathTo("qml/main.qml"));
view->show();
return app->exec();
}