2010-11-01 17:03:46 +01:00
|
|
|
/*
|
|
|
|
|
This file was generated by the Qt Quick Application wizard of Qt Creator.
|
|
|
|
|
QmlApplicationViewer is a convenience class containing mobile device specific
|
|
|
|
|
code such as screen orientation handling. Also QML paths and debugging are
|
|
|
|
|
handled here.
|
|
|
|
|
It is recommended not to modify this file, since newer versions of Qt Creator
|
|
|
|
|
may offer an updated version of it.
|
|
|
|
|
*/
|
|
|
|
|
|
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
|
|
|
{
|
2010-11-01 17:03:46 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
2010-07-15 11:58:37 +02:00
|
|
|
public:
|
2010-11-01 17:03:46 +01:00
|
|
|
enum ScreenOrientation {
|
|
|
|
|
ScreenOrientationLockPortrait,
|
|
|
|
|
ScreenOrientationLockLandscape,
|
|
|
|
|
ScreenOrientationAuto
|
2010-07-15 11:58:37 +02:00
|
|
|
};
|
|
|
|
|
|
2010-11-10 16:56:39 +01:00
|
|
|
explicit QmlApplicationViewer(QWidget *parent = 0);
|
2010-08-25 19:07:50 +02:00
|
|
|
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-11-01 17:03:46 +01:00
|
|
|
void setOrientation(ScreenOrientation orientation);
|
2010-11-01 19:19:32 +01:00
|
|
|
void showExpanded();
|
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
|