diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-12-17 06:18:03 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-12-17 06:22:30 (GMT) |
commit | e0abcb2ff7a3044305580659f9a432a9630a5943 (patch) | |
tree | ddb96bb810d47aadafff1e50ebe960358376110f /tests/auto/declarative/qdeclarativestates/data/reset.qml | |
parent | 632016368e26ba06d7d09740a8a1805f4ea911f1 (diff) | |
download | Qt-e0abcb2ff7a3044305580659f9a432a9630a5943.zip Qt-e0abcb2ff7a3044305580659f9a432a9630a5943.tar.gz Qt-e0abcb2ff7a3044305580659f9a432a9630a5943.tar.bz2 |
Fix QDeclarativeState::reset() autotest
Current state reset mechanism does not really work for Text elements as the keeping implicit correct would require relayouting of text twice (See bug QTBUG-15118). Changed QDeclarativeState reset autotest to use Image element instead of Text element until the issue has been fixed.
Task-number:
Reviewed-by: Yann Bodson
Diffstat (limited to 'tests/auto/declarative/qdeclarativestates/data/reset.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativestates/data/reset.qml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/auto/declarative/qdeclarativestates/data/reset.qml b/tests/auto/declarative/qdeclarativestates/data/reset.qml index 8799c97..a140ffa 100644 --- a/tests/auto/declarative/qdeclarativestates/data/reset.qml +++ b/tests/auto/declarative/qdeclarativestates/data/reset.qml @@ -3,17 +3,16 @@ import QtQuick 1.0 Rectangle { width: 640 height: 480 - Text { - id: theText + Image { + id: image width: 40 - wrapMode: Text.WordWrap - text: "a text string that is longer than 40 pixels" + source: "image.png" } states: State { name: "state1" PropertyChanges { - target: theText + target: image width: undefined } } |