1 // checksum 0x82ed version 0x60010
3 This file was generated by the Qt Quick Application wizard of Qt Creator.
4 QmlApplicationViewer is a convenience class containing mobile device specific
5 code such as screen orientation handling. Also QML paths and debugging are
7 It is recommended not to modify this file, since newer versions of Qt Creator
8 may offer an updated version of it.
11 #ifndef QMLAPPLICATIONVIEWER_H
12 #define QMLAPPLICATIONVIEWER_H
14 #include <QtDeclarative/QDeclarativeView>
16 class QmlApplicationViewer : public QDeclarativeView
21 enum ScreenOrientation {
22 ScreenOrientationLockPortrait,
23 ScreenOrientationLockLandscape,
27 explicit QmlApplicationViewer(QWidget *parent = 0);
28 virtual ~QmlApplicationViewer();
30 static QmlApplicationViewer *create();
32 void setMainQmlFile(const QString &file);
33 void addImportPath(const QString &path);
35 // Note that this will only have an effect on Symbian and Fremantle.
36 void setOrientation(ScreenOrientation orientation);
41 explicit QmlApplicationViewer(QDeclarativeView *view, QWidget *parent);
42 class QmlApplicationViewerPrivate *d;
45 QApplication *createApplication(int &argc, char **argv);
47 #endif // QMLAPPLICATIONVIEWER_H