summaryrefslogtreecommitdiff
path: root/src/controls/TextArea.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2013-03-18 11:16:23 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-19 10:42:20 +0100
commitbf398a2c430b6bed7bcb510dd1969caa82db2e42 (patch)
treea451cf000392ab5ec35a6204d56a14e584f2c838 /src/controls/TextArea.qml
parent68772d7c5eda51f2c97d6f63112ad9682adc256c (diff)
downloadqtquickcontrols-bf398a2c430b6bed7bcb510dd1969caa82db2e42.tar.gz
TextArea: expose selectByMouse/Keyboard
Change-Id: I94d3b55f82a8a6c80026c35f6f3bb0932a3c57a9 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'src/controls/TextArea.qml')
-rw-r--r--src/controls/TextArea.qml27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/controls/TextArea.qml b/src/controls/TextArea.qml
index 85c0e056..47401147 100644
--- a/src/controls/TextArea.qml
+++ b/src/controls/TextArea.qml
@@ -346,6 +346,33 @@ ScrollView {
property alias wrapMode: edit.wrapMode
/*!
+ \qmlproperty bool TextArea::selectByMouse
+
+ This property determines if the user can select the text with the
+ mouse.
+
+ The default value is \c true.
+ */
+ property alias selectByMouse: edit.selectByMouse
+
+ /*!
+ \qmlproperty bool TextArea::selectByKeyboard
+
+ This property determines if the user can select the text with the
+ keyboard.
+
+ If set to \c true, the user can use the keyboard to select the text
+ even if the editor is read-only. If set to \c false, the user cannot
+ use the keyboard to select the text even if the editor is editable.
+
+ The default value is \c true when the editor is editable,
+ and \c false when read-only.
+
+ \sa readOnly
+ */
+ property alias selectByKeyboard: edit.selectByKeyboard
+
+ /*!
\qmlsignal TextArea::linkActivated(string link)
This signal is emitted when the user clicks on a link embedded in the text.