Files
qt-creator/share/qtcreator/templates/qmlapp/qmlapplicationviewer/qmlapplicationviewer.h
Christian Kandeler 1507b5b4e1 QML wizard: Remove remains of dummy data loading.
The GUI part of this has been removed already.

Reviewed-by: Alessandro Portale
2010-09-21 16:32:30 +02:00

28 lines
592 B
C++

#ifndef QMLAPPLICATIONVIEWER_H
#define QMLAPPLICATIONVIEWER_H
#include <QtDeclarative/QDeclarativeView>
class QmlApplicationViewer : public QDeclarativeView
{
public:
enum Orientation {
LockPortrait,
LockLandscape,
Auto
};
QmlApplicationViewer(QWidget *parent = 0);
virtual ~QmlApplicationViewer();
void setMainQmlFile(const QString &file);
void addImportPath(const QString &path);
void setOrientation(Orientation orientation);
void show();
private:
class QmlApplicationViewerPrivate *m_d;
};
#endif // QMLAPPLICATIONVIEWER_H