summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-06-27 18:41:35 +0200
committerJ-P Nurmi <jpnurmi@digia.com>2014-06-30 11:01:58 +0200
commite22903443ba8f828eebe1f4c00b1567b7728b209 (patch)
treeed3749f65a0c2eece28faa5b9d255d2be158dbcc /tests
parentbc8d549938f700b075846caffb877df87cd2e305 (diff)
downloadqtquickcontrols-e22903443ba8f828eebe1f4c00b1567b7728b209.tar.gz
texthandles test: add checkbox for disabling mouse selection
Change-Id: I2888216918e89e0c0ba41aa3125cb57d76fd7827 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/texthandles/main.qml10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/manual/texthandles/main.qml b/tests/manual/texthandles/main.qml
index e5b8b3db..c7b824a4 100644
--- a/tests/manual/texthandles/main.qml
+++ b/tests/manual/texthandles/main.qml
@@ -54,15 +54,21 @@ ApplicationWindow {
anchors.fill: parent
anchors.margins: window.spacing
CheckBox {
+ id: selectBox
+ text: "SelectByMouse"
+ checked: true
+ }
+ CheckBox {
id: handleBox
text: "Handles"
checked: true
+ enabled: selectBox.checked
}
CheckBox {
id: outlineBox
text: "Outlines"
checked: false
- enabled: handleBox.checked
+ enabled: handleBox.enabled && handleBox.checked
}
Item { width: 1; height: 1; Layout.fillWidth: true }
CheckBox {
@@ -96,6 +102,7 @@ ApplicationWindow {
z: 1
text: loremIpsum
Layout.fillWidth: true
+ selectByMouse: selectBox.checked
style: TextFieldStyle {
cursorHandle: handleBox.checked ? cursorDelegate : null
@@ -109,6 +116,7 @@ ApplicationWindow {
Layout.fillHeight: true
textFormat: Qt.RichText
+ selectByMouse: selectBox.checked
wrapMode: wrapBox.checked ? Text.Wrap : Text.NoWrap
text: loremIpsum + "<p>" + loremIpsum + "<p>" + loremIpsum + "<p>" + loremIpsum