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 |
|
10886
|
16 |
Q_INIT_RESOURCE(qmlFrontend);
|
|
17 |
|
10402
|
18 |
QtQuick2ApplicationViewer viewer;
|
10420
|
19 |
|
|
20 |
viewer.engine()->addImageProvider(QLatin1String("preview"), new PreviewImageProvider());
|
10436
|
21 |
viewer.engine()->addImageProvider(QLatin1String("theme"), new ThemeIconProvider());
|
10420
|
22 |
|
10886
|
23 |
viewer.setSource(QUrl("qrc:/qml/qmlFrontend/main.qml"));
|
10402
|
24 |
viewer.showExpanded();
|
|
25 |
|
|
26 |
return app.exec();
|
|
27 |
}
|