qmlFrontend/main.cpp
author unc0rr
Tue, 16 Sep 2014 12:46:58 +0400
branchqmlfrontend
changeset 10408 5fdc42ef5bcc
parent 10402 3313336c1ee0
child 10420 02c573d19224
permissions -rw-r--r--
Some more of ignoration
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10402
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     1
#include <QtGui/QGuiApplication>
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     2
#include "qtquick2applicationviewer/qtquick2applicationviewer.h"
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     3
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     4
#include "hwengine.h"
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     5
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     6
int main(int argc, char *argv[])
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     7
{
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     8
    QGuiApplication app(argc, argv);
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     9
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    10
    HWEngine::exposeToQML();
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    11
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    12
    QtQuick2ApplicationViewer viewer;
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    13
    viewer.setMainQmlFile(QStringLiteral("qml/qmlFrontend/main.qml"));
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    14
    viewer.showExpanded();
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    15
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    16
    return app.exec();
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    17
}