--- a/qmlFrontend/main.cpp Sun Sep 21 00:37:50 2014 +0400
+++ b/qmlFrontend/main.cpp Mon Sep 22 02:10:39 2014 +0400
@@ -1,7 +1,10 @@
#include <QtGui/QGuiApplication>
+#include <QQmlEngine>
+
#include "qtquick2applicationviewer/qtquick2applicationviewer.h"
+#include "hwengine.h"
+#include "previewimageprovider.h"
-#include "hwengine.h"
int main(int argc, char *argv[])
{
@@ -10,6 +13,9 @@
HWEngine::exposeToQML();
QtQuick2ApplicationViewer viewer;
+
+ viewer.engine()->addImageProvider(QLatin1String("preview"), new PreviewImageProvider());
+
viewer.setMainQmlFile(QStringLiteral("qml/qmlFrontend/main.qml"));
viewer.showExpanded();