summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/qdeclarativetextedit
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-05-31 05:45:01 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-05-31 05:49:01 (GMT)
commitb8b1e9784583e3b5960b1966328299f8a1bec440 (patch)
tree26b147cdf82bde0b3d97610a8449fcc1599d2246 /tests/auto/declarative/qmlvisual/qdeclarativetextedit
parentc00e6b499e89e4b872e9148c5f8a37f9050d9c84 (diff)
downloadQt-b8b1e9784583e3b5960b1966328299f8a1bec440.zip
Qt-b8b1e9784583e3b5960b1966328299f8a1bec440.tar.gz
Qt-b8b1e9784583e3b5960b1966328299f8a1bec440.tar.bz2
Simplify selection setting. Make TextInput more like TextEdit.
By making selectionStart/End read-only, and adding adding select(). Task-number: QTBUG-11056
Diffstat (limited to 'tests/auto/declarative/qmlvisual/qdeclarativetextedit')
-rw-r--r--tests/auto/declarative/qmlvisual/qdeclarativetextedit/MultilineEdit.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/declarative/qmlvisual/qdeclarativetextedit/MultilineEdit.qml b/tests/auto/declarative/qmlvisual/qdeclarativetextedit/MultilineEdit.qml
index 0273282..53538cb 100644
--- a/tests/auto/declarative/qmlvisual/qdeclarativetextedit/MultilineEdit.qml
+++ b/tests/auto/declarative/qmlvisual/qdeclarativetextedit/MultilineEdit.qml
@@ -65,8 +65,7 @@ Item {
onReleased: {
}
onDoubleClicked: {
- textEdit.selectionStart=0;
- textEdit.selectionEnd=textEdit.text.length;
+ textEdit.selectAll()
}
z: textEdit.z + 1
}