examples/QtQuick/qtvideoplayer/qmlapplicationviewer/qmlapplicationviewer.h

00001 // checksum 0x5a59 version 0x2000a
00002 /*
00003   This file was generated by the Qt Quick Application wizard of Qt Creator.
00004   QmlApplicationViewer is a convenience class containing mobile device specific
00005   code such as screen orientation handling. Also QML paths and debugging are
00006   handled here.
00007   It is recommended not to modify this file, since newer versions of Qt Creator
00008   may offer an updated version of it.
00009 */
00010 
00011 #ifndef QMLAPPLICATIONVIEWER_H
00012 #define QMLAPPLICATIONVIEWER_H
00013 
00014 #include <QtDeclarative/QDeclarativeView>
00015 
00016 class QmlApplicationViewer : public QDeclarativeView
00017 {
00018     Q_OBJECT
00019 
00020 public:
00021     enum ScreenOrientation {
00022         ScreenOrientationLockPortrait,
00023         ScreenOrientationLockLandscape,
00024         ScreenOrientationAuto
00025     };
00026 
00027     explicit QmlApplicationViewer(QWidget *parent = 0);
00028     virtual ~QmlApplicationViewer();
00029 
00030     void setMainQmlFile(const QString &file);
00031     void addImportPath(const QString &path);
00032     void setOrientation(ScreenOrientation orientation);
00033     void showExpanded();
00034 
00035 private:
00036     class QmlApplicationViewerPrivate *m_d;
00037 };
00038 
00039 #endif // QMLAPPLICATIONVIEWER_H

Generated by  doxygen 1.6.2