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