diff options
author | Jani Honkonen <jani.honkonen@digia.com> | 2012-09-18 12:16:15 +0300 |
---|---|---|
committer | Jani Honkonen <jani.honkonen@digia.com> | 2012-09-18 12:16:15 +0300 |
commit | 816c8c6e440e105c897dfa292dbe4aa7c1a61320 (patch) | |
tree | 88f3c4cac49154e1cff63200801c28ef1806dd13 /demos/qmlcustomlegend/main.cpp | |
parent | 9ab9a4869d160d2833b9a9164dc7fd1eb79aa065 (diff) |
qmlcustomlegend: fix qt5 build
Diffstat (limited to 'demos/qmlcustomlegend/main.cpp')
-rwxr-xr-x | demos/qmlcustomlegend/main.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/demos/qmlcustomlegend/main.cpp b/demos/qmlcustomlegend/main.cpp index f93f1a94..6353e563 100755 --- a/demos/qmlcustomlegend/main.cpp +++ b/demos/qmlcustomlegend/main.cpp @@ -18,8 +18,12 @@ **
****************************************************************************/
-#include <QtGui/QApplication>
-#include <QDeclarativeEngine>
+#include <QApplication>
+#ifdef QT5_QUICK_1
+ #include <QtQuick1/QDeclarativeEngine>
+#else
+ #include <QtDeclarative/QDeclarativeEngine>
+#endif
#include "qmlapplicationviewer.h"
Q_DECL_EXPORT int main(int argc, char *argv[])
@@ -27,7 +31,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) QScopedPointer<QApplication> app(createApplication(argc, argv));
QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
- viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
+ //viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
viewer->setSource(QUrl("qrc:/qml/qmlcustomlegend/loader.qml"));
viewer->setRenderHint(QPainter::Antialiasing, true);
viewer->showExpanded();
|