forked from qt-creator/qt-creator
Don't generate Qt icons for Qt Quick App projects anymore. Change-Id: Ic0fc43235a5b8da6696d5eb8d4a765d49b03dfd1 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
/*
|
|
This file was generated by the Qt Quick 1 Application wizard of Qt Creator.
|
|
QtQuick1ApplicationViewer is a convenience class containing mobile device
|
|
specific code such as screen orientation handling. Also QML paths are
|
|
handled here.
|
|
It is recommended not to modify this file, since newer versions of Qt Creator
|
|
may offer an updated version of it.
|
|
*/
|
|
|
|
#ifndef QTQUICK1APPLICATIONVIEWER_H
|
|
#define QTQUICK1APPLICATIONVIEWER_H
|
|
|
|
#include <QDeclarativeView>
|
|
|
|
class QtQuick1ApplicationViewer : public QDeclarativeView
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
enum ScreenOrientation {
|
|
ScreenOrientationLockPortrait,
|
|
ScreenOrientationLockLandscape,
|
|
ScreenOrientationAuto
|
|
};
|
|
|
|
explicit QtQuick1ApplicationViewer(QWidget *parent = 0);
|
|
virtual ~QtQuick1ApplicationViewer();
|
|
|
|
static QtQuick1ApplicationViewer *create();
|
|
|
|
void setMainQmlFile(const QString &file);
|
|
void addImportPath(const QString &path);
|
|
|
|
// Note that this will only have an effect on Fremantle.
|
|
void setOrientation(ScreenOrientation orientation);
|
|
|
|
void showExpanded();
|
|
};
|
|
|
|
#endif // QTQUICK1APPLICATIONVIEWER_H
|