10402
|
1 |
#include <QtGui/QGuiApplication>
|
10420
|
2 |
#include <QQmlEngine>
|
|
3 |
|
10402
|
4 |
#include "qtquick2applicationviewer/qtquick2applicationviewer.h"
|
10420
|
5 |
#include "hwengine.h"
|
|
6 |
#include "previewimageprovider.h"
|
10402
|
7 |
|
|
8 |
|
|
9 |
int main(int argc, char *argv[])
|
|
10 |
{
|
|
11 |
QGuiApplication app(argc, argv);
|
|
12 |
|
|
13 |
HWEngine::exposeToQML();
|
|
14 |
|
|
15 |
QtQuick2ApplicationViewer viewer;
|
10420
|
16 |
|
|
17 |
viewer.engine()->addImageProvider(QLatin1String("preview"), new PreviewImageProvider());
|
|
18 |
|
10402
|
19 |
viewer.setMainQmlFile(QStringLiteral("qml/qmlFrontend/main.qml"));
|
|
20 |
viewer.showExpanded();
|
|
21 |
|
|
22 |
return app.exec();
|
|
23 |
}
|