diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2014-06-27 18:41:35 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@digia.com> | 2014-06-30 11:01:58 +0200 |
commit | e22903443ba8f828eebe1f4c00b1567b7728b209 (patch) | |
tree | ed3749f65a0c2eece28faa5b9d255d2be158dbcc /tests | |
parent | bc8d549938f700b075846caffb877df87cd2e305 (diff) | |
download | qtquickcontrols-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.qml | 10 |
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 |