From e22903443ba8f828eebe1f4c00b1567b7728b209 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Fri, 27 Jun 2014 18:41:35 +0200 Subject: texthandles test: add checkbox for disabling mouse selection Change-Id: I2888216918e89e0c0ba41aa3125cb57d76fd7827 Reviewed-by: Caroline Chao --- tests/manual/texthandles/main.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests') 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 @@ -53,16 +53,22 @@ ApplicationWindow { RowLayout { 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 + "

" + loremIpsum + "

" + loremIpsum + "

" + loremIpsum -- cgit v1.2.1