|
1 // checksum 0x382f version 0x4000b |
|
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 |
|
33 // Note that this will only have an effect on Symbian and Fremantle. |
|
34 void setOrientation(ScreenOrientation orientation); |
|
35 |
|
36 void showExpanded(); |
|
37 |
|
38 private: |
|
39 class QmlApplicationViewerPrivate *m_d; |
|
40 }; |
|
41 |
|
42 #endif // QMLAPPLICATIONVIEWER_H |