equal
deleted
inserted
replaced
|
1 // checksum 0x39ee version 0x10008 |
|
2 #ifndef QMLAPPLICATIONVIEWER_H |
|
3 #define QMLAPPLICATIONVIEWER_H |
|
4 |
|
5 #include <QtDeclarative/QDeclarativeView> |
|
6 |
|
7 class QmlApplicationViewer : public QDeclarativeView |
|
8 { |
|
9 public: |
|
10 enum Orientation { |
|
11 LockPortrait, |
|
12 LockLandscape, |
|
13 Auto |
|
14 }; |
|
15 |
|
16 QmlApplicationViewer(QWidget *parent = 0); |
|
17 virtual ~QmlApplicationViewer(); |
|
18 |
|
19 void setMainQmlFile(const QString &file); |
|
20 void addImportPath(const QString &path); |
|
21 void setOrientation(Orientation orientation); |
|
22 void show(); |
|
23 |
|
24 private: |
|
25 class QmlApplicationViewerPrivate *m_d; |
|
26 }; |
|
27 |
|
28 #endif // QMLAPPLICATIONVIEWER_H |