Files
qt-creator/share/qtcreator/templates/qmlapp/cpp/qmlapplicationview.h
Alessandro Portale 4565bc742b Move qml app templates from .qrc to share/qtcreator/templates
Makes development easier (no recompiling needed when tweaking the
templates). Also, all other templates are in that folder.
2010-08-03 21:54:09 +02:00

27 lines
605 B
C++

#ifndef QMLAPPLICATIONVIEW_H
#define QMLAPPLICATIONVIEW_H
#include <QtDeclarative/QDeclarativeView>
class QmlApplicationView : public QDeclarativeView
{
public:
enum Orientation {
LockPortrait,
LockLandscape,
Auto
};
QmlApplicationView(const QString &mainQmlFile, QWidget *parent = 0);
virtual ~QmlApplicationView();
void setImportPathList(const QStringList &importPaths);
void setOrientation(Orientation orientation);
void setLoadDummyData(bool loadDummyData);
private:
class QmlApplicationViewPrivate *m_d;
};
#endif // QMLAPPLICATIONVIEW_H