diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-04-13 07:42:17 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-04-14 05:10:42 (GMT) |
commit | 063a2d45de349b4bc9c7bb23197392a92159ddc9 (patch) | |
tree | 9ed8089996fb50b9894818993cd3a207ce7542df /tools/qml/deviceorientation.h | |
parent | ffd45093795e9481505af0ae9bf5df7b6c704c72 (diff) | |
download | Qt-063a2d45de349b4bc9c7bb23197392a92159ddc9.zip Qt-063a2d45de349b4bc9c7bb23197392a92159ddc9.tar.gz Qt-063a2d45de349b4bc9c7bb23197392a92159ddc9.tar.bz2 |
Merged 'orientation' into 'runtime' context property in qmlruntime
Removed the 'Screen' element from DeclarativeViewer, as it was used only
for the orientation property. Now access the 'orientation' property like this:
'runtime.orientation' and the enum is accessed as 'Orientation.Landscape',
when using the qmlruntime.
Updated docs for qmlruntime.
Reviewed-by: Martin Jones
Diffstat (limited to 'tools/qml/deviceorientation.h')
-rw-r--r-- | tools/qml/deviceorientation.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qml/deviceorientation.h b/tools/qml/deviceorientation.h index c8125cd..d209005 100644 --- a/tools/qml/deviceorientation.h +++ b/tools/qml/deviceorientation.h @@ -50,6 +50,7 @@ class DeviceOrientationPrivate; class DeviceOrientation : public QObject { Q_OBJECT + Q_ENUMS(Orientation) public: enum Orientation { UnknownOrientation, Portrait, Landscape }; virtual Orientation orientation() const = 0; |