aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquicktextinput/data/persistentSelection.qml
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-01-20 16:10:23 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-02 02:36:00 +0100
commit054a1e942f20e5b64626729f72023ac78dd0ce38 (patch)
treeec4ff0deb03f11989a1c40e1f07ad3c098346505 /tests/auto/qtquick2/qquicktextinput/data/persistentSelection.qml
parentc30a170bb0777e5d5ddc2d45a3ca98d3af0c62c4 (diff)
Add a persistentSelection property to TextInput.
Improves feature parity with TextEdit. Task-number: QTBUG-16355 Change-Id: I3919c71454a4f4574a1ee35ad38969459beb8363 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'tests/auto/qtquick2/qquicktextinput/data/persistentSelection.qml')
-rw-r--r--tests/auto/qtquick2/qquicktextinput/data/persistentSelection.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qtquick2/qquicktextinput/data/persistentSelection.qml b/tests/auto/qtquick2/qquicktextinput/data/persistentSelection.qml
new file mode 100644
index 0000000000..dea6e48b08
--- /dev/null
+++ b/tests/auto/qtquick2/qquicktextinput/data/persistentSelection.qml
@@ -0,0 +1,8 @@
+import QtQuick 2.0
+
+TextInput {
+ property string selected: selectedText
+
+ text: "Hello World!"
+ focus: true
+}