2010-08-25 19:07:50 +02:00
|
|
|
#ifndef QMLAPPLICATIONVIEWER_H
|
|
|
|
|
#define QMLAPPLICATIONVIEWER_H
|
2010-07-15 11:58:37 +02:00
|
|
|
|
2010-08-09 13:17:32 +02:00
|
|
|
#include <QtDeclarative/QDeclarativeView>
|
2010-09-16 14:41:39 +02:00
|
|
|
|
2010-08-25 19:07:50 +02:00
|
|
|
class QmlApplicationViewer : public QDeclarativeView
|
2010-07-15 11:58:37 +02:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
enum Orientation {
|
|
|
|
|
LockPortrait,
|
|
|
|
|
LockLandscape,
|
|
|
|
|
Auto
|
|
|
|
|
};
|
|
|
|
|
|
2010-08-25 19:07:50 +02:00
|
|
|
QmlApplicationViewer(QWidget *parent = 0);
|
|
|
|
|
virtual ~QmlApplicationViewer();
|
2010-07-15 11:58:37 +02:00
|
|
|
|
2010-08-16 20:40:02 +02:00
|
|
|
void setMainQmlFile(const QString &file);
|
|
|
|
|
void addImportPath(const QString &path);
|
2010-07-15 11:58:37 +02:00
|
|
|
void setOrientation(Orientation orientation);
|
2010-09-20 13:18:35 +02:00
|
|
|
void show();
|
2010-07-15 11:58:37 +02:00
|
|
|
|
|
|
|
|
private:
|
2010-08-25 19:07:50 +02:00
|
|
|
class QmlApplicationViewerPrivate *m_d;
|
2010-07-15 11:58:37 +02:00
|
|
|
};
|
|
|
|
|
|
2010-08-25 19:07:50 +02:00
|
|
|
#endif // QMLAPPLICATIONVIEWER_H
|