summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-12-31 01:28:08 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2010-12-31 01:28:51 (GMT)
commite8b736c44426fd4ae832e82a9e624c9737a40213 (patch)
treefaf7ae466081ea1078ac33d1f283960fc3cf499a /examples
parent22daf9fbdfaa859db6414d39d9354e7d46f63005 (diff)
downloadQt-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.qml2
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 = ""
}
}