summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsystems.com>2017-10-23 15:01:23 +0200
committerChristian Mollekopf <mollekopf@kolabsystems.com>2017-10-23 15:01:23 +0200
commit2cff237d2e4925ac653109583987d790f4cffd65 (patch)
treead66d03bd41c4647fa23a5d8c4917e02ec01026b
parentd51f4c7fc7ee164730f9eebd1ca3db7b1a7c7054 (diff)
downloadkube-2cff237d2e4925ac653109583987d790f4cffd65.tar.gz
kube-2cff237d2e4925ac653109583987d790f4cffd65.zip
Show an IBeamCursor while hovering over a textfield.
-rw-r--r--framework/qml/TextEditor.qml6
-rw-r--r--framework/qml/TextField.qml5
2 files changed, 10 insertions, 1 deletions
diff --git a/framework/qml/TextEditor.qml b/framework/qml/TextEditor.qml
index 784cdecd..b6e62ef6 100644
--- a/framework/qml/TextEditor.qml
+++ b/framework/qml/TextEditor.qml
@@ -59,7 +59,6 @@ FocusScope {
59 cursorPosition: edit.cursorPosition 59 cursorPosition: edit.cursorPosition
60 } 60 }
61 61
62
63 Rectangle { 62 Rectangle {
64 anchors.fill: parent 63 anchors.fill: parent
65 border.width: 1 64 border.width: 1
@@ -109,6 +108,11 @@ FocusScope {
109 font.family: Kube.Font.fontFamily 108 font.family: Kube.Font.fontFamily
110 selectionColor: Kube.Colors.highlightColor 109 selectionColor: Kube.Colors.highlightColor
111 padding: Kube.Units.smallSpacing 110 padding: Kube.Units.smallSpacing
111 MouseArea {
112 anchors.fill: parent
113 acceptedButtons: Qt.NoButton // we don't want to eat clicks on the Text
114 cursorShape: Qt.IBeamCursor
115 }
112 } 116 }
113 } 117 }
114 } 118 }
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 {