-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.cpp
More file actions
28 lines (21 loc) · 766 Bytes
/
main.cpp
File metadata and controls
28 lines (21 loc) · 766 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
#include <QGuiApplication>
#include <QCoreApplication>
#include <QUrl>
#include <QString>
#include <QQuickView>
#include "QZXing.h"
#include "internetchecker/internetchecker.h"
#include <iostream>
#include "git_tag.h"
int main(int argc, char *argv[]) {
QGuiApplication *app = new QGuiApplication(argc, (char**)argv);
app->setApplicationName("kaltracker.ivoxavier");
QCoreApplication::setApplicationVersion(QStringLiteral(BUILD_VERSION));
qmlRegisterType<InternetChecker>("InternetChecker", 0, 1, "InternetChecker");
QZXing::registerQMLTypes();
QQuickView *view = new QQuickView();
view->setSource(QUrl::fromLocalFile("qml/Main.qml"));
view->setResizeMode(QQuickView::SizeRootObjectToView);
view->show();
return app->exec();
}