Sun, 10 Jul 2011 10:49:24 +0200
Note consideration of name change to neater and cooler 'Pendule' d'echecs.
michael@0 | 1 | // checksum 0x382f version 0x4000b |
michael@0 | 2 | /* |
michael@0 | 3 | This file was generated by the Qt Quick Application wizard of Qt Creator. |
michael@0 | 4 | QmlApplicationViewer is a convenience class containing mobile device specific |
michael@0 | 5 | code such as screen orientation handling. Also QML paths and debugging are |
michael@0 | 6 | handled here. |
michael@0 | 7 | It is recommended not to modify this file, since newer versions of Qt Creator |
michael@0 | 8 | may offer an updated version of it. |
michael@0 | 9 | */ |
michael@0 | 10 | |
michael@0 | 11 | #ifndef QMLAPPLICATIONVIEWER_H |
michael@0 | 12 | #define QMLAPPLICATIONVIEWER_H |
michael@0 | 13 | |
michael@0 | 14 | #include <QtDeclarative/QDeclarativeView> |
michael@0 | 15 | |
michael@0 | 16 | class QmlApplicationViewer : public QDeclarativeView |
michael@0 | 17 | { |
michael@0 | 18 | Q_OBJECT |
michael@0 | 19 | |
michael@0 | 20 | public: |
michael@0 | 21 | enum ScreenOrientation { |
michael@0 | 22 | ScreenOrientationLockPortrait, |
michael@0 | 23 | ScreenOrientationLockLandscape, |
michael@0 | 24 | ScreenOrientationAuto |
michael@0 | 25 | }; |
michael@0 | 26 | |
michael@0 | 27 | explicit QmlApplicationViewer(QWidget *parent = 0); |
michael@0 | 28 | virtual ~QmlApplicationViewer(); |
michael@0 | 29 | |
michael@0 | 30 | void setMainQmlFile(const QString &file); |
michael@0 | 31 | void addImportPath(const QString &path); |
michael@0 | 32 | |
michael@0 | 33 | // Note that this will only have an effect on Symbian and Fremantle. |
michael@0 | 34 | void setOrientation(ScreenOrientation orientation); |
michael@0 | 35 | |
michael@0 | 36 | void showExpanded(); |
michael@0 | 37 | |
michael@0 | 38 | private: |
michael@0 | 39 | class QmlApplicationViewerPrivate *m_d; |
michael@0 | 40 | }; |
michael@0 | 41 | |
michael@0 | 42 | #endif // QMLAPPLICATIONVIEWER_H |