qmlFrontend/main.cpp
author unc0rr
Fri, 12 Sep 2014 00:51:14 +0400
branchqmlfrontend
changeset 10402 3313336c1ee0
child 10420 02c573d19224
permissions -rw-r--r--
Let's get it started
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
}