diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-12-31 01:28:08 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-12-31 01:28:51 (GMT) |
commit | e8b736c44426fd4ae832e82a9e624c9737a40213 (patch) | |
tree | faf7ae466081ea1078ac33d1f283960fc3cf499a /examples | |
parent | 22daf9fbdfaa859db6414d39d9354e7d46f63005 (diff) | |
download | Qt-e8b736c44426fd4ae832e82a9e624c9737a40213.zip Qt-e8b736c44426fd4ae832e82a9e624c9737a40213.tar.gz Qt-e8b736c44426fd4ae832e82a9e624c9737a40213.tar.bz2 |
Use deselect() function in text selection example
Task-number: QTBUG-16059
Reviewed-by: Christopher Ham
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/text/textselection/textselection.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/declarative/text/textselection/textselection.qml b/examples/declarative/text/textselection/textselection.qml index f343be5..c6f44a0 100644 --- a/examples/declarative/text/textselection/textselection.qml +++ b/examples/declarative/text/textselection/textselection.qml @@ -265,7 +265,7 @@ Rectangle { anchors.fill: parent onClicked: { edit.cursorPosition = edit.selectionEnd; - edit.select(edit.cursorPosition, edit.cursorPosition); + edit.deselect(); editor.state = "" } } |