1 // checksum 0x5a59 version 0x3000a
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 void setMainQmlFile(const QString &file);
31 void addImportPath(const QString &path);
32 void setOrientation(ScreenOrientation orientation);
35 Q_INVOKABLE void initScreenOrientation(int);
36 Q_INVOKABLE void minimize();
39 class QmlApplicationViewerPrivate *m_d;
42 #endif // QMLAPPLICATIONVIEWER_H