aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/ui-components/main/main.cpp
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2011-05-11 17:35:46 +0200
committerDavid Boddie <david.boddie@nokia.com>2011-05-23 14:27:59 +0200
commit6146287cb3dac27691895f99c7f9bf3215730bd9 (patch)
treeba1ea35311d02553740d5edcbff57f1ba6729a6f /examples/declarative/ui-components/main/main.cpp
parent5eb37920d65a43d8922b6f1c452da48465d0c5a7 (diff)
Squashed commit of changes from the 4.8-temp branch.
Diffstat (limited to 'examples/declarative/ui-components/main/main.cpp')
-rw-r--r--examples/declarative/ui-components/main/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/declarative/ui-components/main/main.cpp b/examples/declarative/ui-components/main/main.cpp
new file mode 100644
index 0000000000..6679628870
--- /dev/null
+++ b/examples/declarative/ui-components/main/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::ScreenOrientationLockLandscape);
+ viewer.setMainQmlFile(QLatin1String("qml/qml/main.qml"));
+ viewer.showExpanded();
+
+ return app.exec();
+}