summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/qmlsurfacelayers/main.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2014-02-13 11:44:32 +0200
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2014-02-13 12:44:03 +0200
commit0f9aab7f371f70b49d3bea2299069077f845cf12 (patch)
tree134ed40ac4442b3b9b9a2e34310473ce6a21e497 /examples/datavisualization/qmlsurfacelayers/main.cpp
parent88cd10aa7b3559b092cf5575b0a17d002dc100ae (diff)
Get rid of applicationviewer generated files
These tamper with examples installation, which we do not want. Change-Id: Ibc81a5fe3323c2c831f21cdea94d941704abc641 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com> Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'examples/datavisualization/qmlsurfacelayers/main.cpp')
-rw-r--r--examples/datavisualization/qmlsurfacelayers/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/datavisualization/qmlsurfacelayers/main.cpp b/examples/datavisualization/qmlsurfacelayers/main.cpp
index bb0c5649..fc7393e6 100644
--- a/examples/datavisualization/qmlsurfacelayers/main.cpp
+++ b/examples/datavisualization/qmlsurfacelayers/main.cpp
@@ -16,17 +16,18 @@
**
****************************************************************************/
-#include "qtquick2applicationviewer.h"
#include <QtDataVisualization/qutils.h>
#include <QtGui/QGuiApplication>
#include <QtCore/QDir>
+#include <QtQuick/QQuickView>
+#include <QtQml/QQmlEngine>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
- QtQuick2ApplicationViewer viewer;
+ QQuickView viewer;
// Enable antialiasing
viewer.setFormat(QtDataVisualization::qDefaultSurfaceFormat());
@@ -38,7 +39,7 @@ int main(int argc, char *argv[])
#else
QString extraImportPath(QStringLiteral("%1/../../../%2"));
#endif
- viewer.addImportPath(extraImportPath.arg(QGuiApplication::applicationDirPath(),
+ viewer.engine()->addImportPath(extraImportPath.arg(QGuiApplication::applicationDirPath(),
QString::fromLatin1("qml")));
viewer.setSource(QUrl("qrc:/qml/qmlsurfacelayers/main.qml"));