michael@0: // checksum 0x382f version 0x4000b michael@0: /* michael@0: This file was generated by the Qt Quick Application wizard of Qt Creator. michael@0: QmlApplicationViewer is a convenience class containing mobile device specific michael@0: code such as screen orientation handling. Also QML paths and debugging are michael@0: handled here. michael@0: It is recommended not to modify this file, since newer versions of Qt Creator michael@0: may offer an updated version of it. michael@0: */ michael@0: michael@0: #ifndef QMLAPPLICATIONVIEWER_H michael@0: #define QMLAPPLICATIONVIEWER_H michael@0: michael@0: #include michael@0: michael@0: class QmlApplicationViewer : public QDeclarativeView michael@0: { michael@0: Q_OBJECT michael@0: michael@0: public: michael@0: enum ScreenOrientation { michael@0: ScreenOrientationLockPortrait, michael@0: ScreenOrientationLockLandscape, michael@0: ScreenOrientationAuto michael@0: }; michael@0: michael@0: explicit QmlApplicationViewer(QWidget *parent = 0); michael@0: virtual ~QmlApplicationViewer(); michael@0: michael@0: void setMainQmlFile(const QString &file); michael@0: void addImportPath(const QString &path); michael@0: michael@0: // Note that this will only have an effect on Symbian and Fremantle. michael@0: void setOrientation(ScreenOrientation orientation); michael@0: michael@0: void showExpanded(); michael@0: michael@0: private: michael@0: class QmlApplicationViewerPrivate *m_d; michael@0: }; michael@0: michael@0: #endif // QMLAPPLICATIONVIEWER_H