qmlFrontend/main.cpp
author unC0Rr
Wed, 12 Aug 2015 17:30:14 +0300
branchqmlfrontend
changeset 11047 46482475af2b
parent 10886 99273b7afbff
permissions -rw-r--r--
Generate parameters structures

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

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


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

    HWEngine::exposeToQML();

    Q_INIT_RESOURCE(qmlFrontend);

    QtQuick2ApplicationViewer viewer;

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

    viewer.setSource(QUrl("qrc:/qml/qmlFrontend/main.qml"));
    viewer.showExpanded();

    return app.exec();
}