examples/QtQuick/qmlcontactslist/qmlapplicationviewer/qmlapplicationviewer.h

00001 // checksum 0x382f version 0x4000b
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 
00033     // Note that this will only have an effect on Symbian and Fremantle.
00034     void setOrientation(ScreenOrientation orientation);
00035 
00036     void showExpanded();
00037 
00038 private:
00039     class QmlApplicationViewerPrivate *m_d;
00040 };
00041 
00042 #endif // QMLAPPLICATIONVIEWER_H

Generated by  doxygen 1.6.2