diff options
author | Christian Mollekopf <mollekopf@kolabsystems.com> | 2017-10-23 15:01:23 +0200 |
---|---|---|
committer | Christian Mollekopf <mollekopf@kolabsystems.com> | 2017-10-23 15:01:23 +0200 |
commit | 2cff237d2e4925ac653109583987d790f4cffd65 (patch) | |
tree | ad66d03bd41c4647fa23a5d8c4917e02ec01026b /framework/qml/TextField.qml | |
parent | d51f4c7fc7ee164730f9eebd1ca3db7b1a7c7054 (diff) | |
download | kube-2cff237d2e4925ac653109583987d790f4cffd65.tar.gz kube-2cff237d2e4925ac653109583987d790f4cffd65.zip |
Show an IBeamCursor while hovering over a textfield.
Diffstat (limited to 'framework/qml/TextField.qml')
-rw-r--r-- | framework/qml/TextField.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/framework/qml/TextField.qml b/framework/qml/TextField.qml index feb34a33..effdc43b 100644 --- a/framework/qml/TextField.qml +++ b/framework/qml/TextField.qml | |||
@@ -48,6 +48,11 @@ T.TextField { | |||
48 | text: root.placeholderText | 48 | text: root.placeholderText |
49 | color: Kube.Colors.disabledTextColor | 49 | color: Kube.Colors.disabledTextColor |
50 | elide: Text.ElideRight | 50 | elide: Text.ElideRight |
51 | MouseArea { | ||
52 | anchors.fill: parent | ||
53 | acceptedButtons: Qt.NoButton // we don't want to eat clicks on the Text | ||
54 | cursorShape: Qt.IBeamCursor | ||
55 | } | ||
51 | } | 56 | } |
52 | 57 | ||
53 | background: Rectangle { | 58 | background: Rectangle { |