qmlFrontend/main.cpp
author unc0rr
Sun, 28 Sep 2014 01:17:55 +0400
branchqmlfrontend
changeset 10430 899a30018ede
parent 10420 02c573d19224
child 10436 084e046f6bd5
permissions -rw-r--r--
Getter and setter for seed

#include <QtGui/QGuiApplication>
#include <QQmlEngine>

#include "qtquick2applicationviewer/qtquick2applicationviewer.h"
#include "hwengine.h"
#include "previewimageprovider.h"


int main(int argc, char *argv[])
{
    QGuiApplication app(argc, argv);

    HWEngine::exposeToQML();

    QtQuick2ApplicationViewer viewer;

    viewer.engine()->addImageProvider(QLatin1String("preview"), new PreviewImageProvider());

    viewer.setMainQmlFile(QStringLiteral("qml/qmlFrontend/main.qml"));
    viewer.showExpanded();

    return app.exec();
}