summaryrefslogtreecommitdiff
path: root/src/controls/Private
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>2014-10-06 14:09:22 +0200
committerRichard Moe Gustavsen <richard.gustavsen@digia.com>2014-10-06 15:00:08 +0200
commit726babbcff54b589dbc46a2f53a4eb9f0ad03cb9 (patch)
tree3c380b8d755d34446f37524f0b137d6fe655d3ac /src/controls/Private
parent60911e61333f89b0e079444a2b790f5fd4d20a96 (diff)
downloadqtquickcontrols-726babbcff54b589dbc46a2f53a4eb9f0ad03cb9.tar.gz
add support for setting cursor delegate through style
Change-Id: I064c4df7213a8c1c0ecc38ea9b224444abf13d1d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/controls/Private')
-rw-r--r--src/controls/Private/TextInputWithHandles.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controls/Private/TextInputWithHandles.qml b/src/controls/Private/TextInputWithHandles.qml
index e5d72f96..f3348774 100644
--- a/src/controls/Private/TextInputWithHandles.qml
+++ b/src/controls/Private/TextInputWithHandles.qml
@@ -52,6 +52,7 @@ TextInput {
readonly property int selectionPosition: selectionStart !== cursorPosition ? selectionStart : selectionEnd
readonly property alias containsMouse: mouseArea.containsMouse
property alias editMenu: editMenu
+ cursorDelegate: __style && __style.cursorDelegate ? __style.cursorDelegate : null
selectByMouse: control.selectByMouse && (!cursorHandle.delegate || !selectionHandle.delegate)