summaryrefslogtreecommitdiffstats
path: root/examples/declarative/i18n/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/i18n/main.cpp')
-rw-r--r--examples/declarative/i18n/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/declarative/i18n/main.cpp b/examples/declarative/i18n/main.cpp
new file mode 100644
index 0000000..66b3ffe
--- /dev/null
+++ b/examples/declarative/i18n/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/i18n.qml"));
+ viewer.showExpanded();
+
+ return app.exec();
+}