Add Screen attached object
authorAlan Alpert <alan.alpert@nokia.com>
Sun, 4 Dec 2011 23:35:33 +0000 (09:35 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 9 Dec 2011 07:58:10 +0000 (08:58 +0100)
commit8724847a9e26e17852ee08b9b0d70b1d648661a0
tree4540f67e6a051a0221c8ba884cdf963651918550
parentf64d29ea65d002d1af3f24cc05f9859f629fa4fe
Add Screen attached object

Use this to get details of the screen such as size and current
orientation.

As well as adding its own example, this commit updates Calculator to
use Screen instead of Runtime for orientation.

Change-Id: I1b73d2ee22a92b1dee827de1bd893eebec9f5817
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 files changed:
examples/declarative/calculator/calculator.qml
examples/declarative/window/screen/ruler.qml [new file with mode: 0644]
src/quick/items/items.pri
src/quick/items/qquickitem.cpp
src/quick/items/qquickitem_p.h
src/quick/items/qquickscreen.cpp [new file with mode: 0644]
src/quick/items/qquickscreen_p.h [new file with mode: 0644]
src/quick/items/qquickwindowmodule.cpp
tests/auto/qtquick2/qquickscreen/data/screen.qml [new file with mode: 0644]
tests/auto/qtquick2/qquickscreen/qquickscreen.pro [new file with mode: 0644]
tests/auto/qtquick2/qquickscreen/tst_qquickscreen.cpp [new file with mode: 0644]
tests/auto/qtquick2/qtquick2.pro