Test Git on little cleaning code
[qwp] / qmlapplicationviewer / qmlapplicationviewer.h
1 // checksum 0x5a59 version 0x2000a
2 /*
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
6   handled here.
7   It is recommended not to modify this file, since newer versions of Qt Creator
8   may offer an updated version of it.
9 */
10
11 #ifndef QMLAPPLICATIONVIEWER_H
12 #define QMLAPPLICATIONVIEWER_H
13
14 #include <QtDeclarative/QDeclarativeView>
15
16 class QmlApplicationViewer : public QDeclarativeView
17 {
18     Q_OBJECT
19
20 public:
21     enum ScreenOrientation {
22         ScreenOrientationLockPortrait,
23         ScreenOrientationLockLandscape,
24         ScreenOrientationAuto
25     };
26
27     explicit QmlApplicationViewer(QWidget *parent = 0);
28     virtual ~QmlApplicationViewer();
29
30     void setMainQmlFile(const QString &file);
31     void addImportPath(const QString &path);
32     void setOrientation(ScreenOrientation orientation);
33     void showExpanded();
34
35 private:
36     class QmlApplicationViewerPrivate *m_d;
37 };
38
39 #endif // QMLAPPLICATIONVIEWER_H