qmlapplicationviewer/qmlapplicationviewer.h

changeset 0
ff1b43f833a9
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/qmlapplicationviewer/qmlapplicationviewer.h	Fri Jul 08 21:05:20 2011 +0200
     1.3 @@ -0,0 +1,42 @@
     1.4 +// checksum 0x382f version 0x4000b
     1.5 +/*
     1.6 +  This file was generated by the Qt Quick Application wizard of Qt Creator.
     1.7 +  QmlApplicationViewer is a convenience class containing mobile device specific
     1.8 +  code such as screen orientation handling. Also QML paths and debugging are
     1.9 +  handled here.
    1.10 +  It is recommended not to modify this file, since newer versions of Qt Creator
    1.11 +  may offer an updated version of it.
    1.12 +*/
    1.13 +
    1.14 +#ifndef QMLAPPLICATIONVIEWER_H
    1.15 +#define QMLAPPLICATIONVIEWER_H
    1.16 +
    1.17 +#include <QtDeclarative/QDeclarativeView>
    1.18 +
    1.19 +class QmlApplicationViewer : public QDeclarativeView
    1.20 +{
    1.21 +    Q_OBJECT
    1.22 +
    1.23 +public:
    1.24 +    enum ScreenOrientation {
    1.25 +        ScreenOrientationLockPortrait,
    1.26 +        ScreenOrientationLockLandscape,
    1.27 +        ScreenOrientationAuto
    1.28 +    };
    1.29 +
    1.30 +    explicit QmlApplicationViewer(QWidget *parent = 0);
    1.31 +    virtual ~QmlApplicationViewer();
    1.32 +
    1.33 +    void setMainQmlFile(const QString &file);
    1.34 +    void addImportPath(const QString &path);
    1.35 +
    1.36 +    // Note that this will only have an effect on Symbian and Fremantle.
    1.37 +    void setOrientation(ScreenOrientation orientation);
    1.38 +
    1.39 +    void showExpanded();
    1.40 +
    1.41 +private:
    1.42 +    class QmlApplicationViewerPrivate *m_d;
    1.43 +};
    1.44 +
    1.45 +#endif // QMLAPPLICATIONVIEWER_H

mercurial