qmlapplicationviewer.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // checksum 0x5a59 version 0x3000a
  2. /*
  3. This file was generated by the Qt Quick Application wizard of Qt Creator.
  4. QmlApplicationViewer is a convenience class containing mobile device specific
  5. code such as screen orientation handling. Also QML paths and debugging are
  6. handled here.
  7. It is recommended not to modify this file, since newer versions of Qt Creator
  8. may offer an updated version of it.
  9. */
  10. #ifndef QMLAPPLICATIONVIEWER_H
  11. #define QMLAPPLICATIONVIEWER_H
  12. #include <QtDeclarative/QDeclarativeView>
  13. class QmlApplicationViewer : public QDeclarativeView
  14. {
  15. Q_OBJECT
  16. public:
  17. enum ScreenOrientation {
  18. ScreenOrientationLockPortrait,
  19. ScreenOrientationLockLandscape,
  20. ScreenOrientationAuto
  21. };
  22. explicit QmlApplicationViewer(QWidget *parent = 0);
  23. virtual ~QmlApplicationViewer();
  24. void setMainQmlFile(const QString &file);
  25. void addImportPath(const QString &path);
  26. void setOrientation(ScreenOrientation orientation);
  27. void showExpanded();
  28. private:
  29. class QmlApplicationViewerPrivate *m_d;
  30. };
  31. #endif // QMLAPPLICATIONVIEWER_H