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"
|
10436
|
7 |
#include "themeiconprovider.h"
|
10402
|
8 |
|
|
9 |
|
|
10 |
int main(int argc, char *argv[])
|
|
11 |
{
|
|
12 |
QGuiApplication app(argc, argv);
|
|
13 |
|
|
14 |
HWEngine::exposeToQML();
|
|
15 |
|
|
16 |
QtQuick2ApplicationViewer viewer;
|
10420
|
17 |
|
|
18 |
viewer.engine()->addImageProvider(QLatin1String("preview"), new PreviewImageProvider());
|
10436
|
19 |
viewer.engine()->addImageProvider(QLatin1String("theme"), new ThemeIconProvider());
|
10420
|
20 |
|
10402
|
21 |
viewer.setMainQmlFile(QStringLiteral("qml/qmlFrontend/main.qml"));
|
|
22 |
viewer.showExpanded();
|
|
23 |
|
|
24 |
return app.exec();
|
|
25 |
}
|