summaryrefslogtreecommitdiffstats
path: root/examples/declarative/positioners/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/positioners/main.cpp')
-rw-r--r--examples/declarative/positioners/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/declarative/positioners/main.cpp b/examples/declarative/positioners/main.cpp
new file mode 100644
index 0000000..1338c66
--- /dev/null
+++ b/examples/declarative/positioners/main.cpp
@@ -0,0 +1,14 @@
+#include <QtGui/QApplication>
+#include "qmlapplicationviewer.h"
+
+int main(int argc, char *argv[])
+{
+ QApplication app(argc, argv);
+
+ QmlApplicationViewer viewer;
+ viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
+ viewer.setMainQmlFile(QLatin1String("qml/qml/positioners.qml"));
+ viewer.showExpanded();
+
+ return app.exec();
+}