qmlapplicationviewer/qmlapplicationviewer.h

Wed, 27 Jul 2011 23:08:32 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 27 Jul 2011 23:08:32 +0200
changeset 13
8fd77655ff43
permissions
-rw-r--r--

Added tag SCHUR_0.6.2 for changeset 1d13b7bae644

     1 // checksum 0x382f version 0x4000b
     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 */
    11 #ifndef QMLAPPLICATIONVIEWER_H
    12 #define QMLAPPLICATIONVIEWER_H
    14 #include <QtDeclarative/QDeclarativeView>
    16 class QmlApplicationViewer : public QDeclarativeView
    17 {
    18     Q_OBJECT
    20 public:
    21     enum ScreenOrientation {
    22         ScreenOrientationLockPortrait,
    23         ScreenOrientationLockLandscape,
    24         ScreenOrientationAuto
    25     };
    27     explicit QmlApplicationViewer(QWidget *parent = 0);
    28     virtual ~QmlApplicationViewer();
    30     void setMainQmlFile(const QString &file);
    31     void addImportPath(const QString &path);
    33     // Note that this will only have an effect on Symbian and Fremantle.
    34     void setOrientation(ScreenOrientation orientation);
    36     void showExpanded();
    38 private:
    39     class QmlApplicationViewerPrivate *m_d;
    40 };
    42 #endif // QMLAPPLICATIONVIEWER_H

mercurial