1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef QMLAPPLICATIONVIEWER_H
- #define QMLAPPLICATIONVIEWER_H
- #include <QDeclarativeView>
- class QmlApplicationViewer : public QDeclarativeView
- {
- Q_OBJECT
- public:
- enum ScreenOrientation {
- ScreenOrientationLockPortrait,
- ScreenOrientationLockLandscape,
- ScreenOrientationAuto
- };
- explicit QmlApplicationViewer(QWidget *parent = 0);
- virtual ~QmlApplicationViewer();
- static QmlApplicationViewer *create();
- void setMainQmlFile(const QString &file);
- void addImportPath(const QString &path);
-
- void setOrientation(ScreenOrientation orientation);
- void showExpanded();
- private:
- class QmlApplicationViewerPrivate *d;
- };
- QApplication *createApplication(int &argc, char **argv);
- #endif
|