Add optional width and height arguments to mapToItem()/mapFromItem()
authorYann Bodson <yann.bodson@nokia.com>
Wed, 16 May 2012 02:59:32 +0000 (12:59 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 17 May 2012 23:01:40 +0000 (01:01 +0200)
commit7ac1a943b824d8624d16397fd4f8a5fa17a7dd9b
tree6ab2b89e729724dc00d194ddbec9f73873ed7c43
parent8017cf63505f7ed477c658634ec882a12d3b3ddc
Add optional width and height arguments to mapToItem()/mapFromItem()

When specifying the width and height from QML, mapToItem()/mapFromItem()
will use QQuickItem::mapRectToItem (and mapRectFromItem).

Task-number: QTBUG-25755
Change-Id: Iae87671913623969d7428dd008afaa6faf3faf33
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquickitem.cpp
tests/auto/quick/qquickitem2/data/mapCoordinatesRect.qml [new file with mode: 0644]
tests/auto/quick/qquickitem2/tst_qquickitem.cpp