diff -r 061910b224a4 -r 2e16639599b7 cards/qmlapplicationviewer/qmlapplicationviewer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cards/qmlapplicationviewer/qmlapplicationviewer.h Mon Oct 25 10:35:32 2010 -0700 @@ -0,0 +1,28 @@ +// checksum 0x39ee version 0x10008 +#ifndef QMLAPPLICATIONVIEWER_H +#define QMLAPPLICATIONVIEWER_H + +#include + +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