summaryrefslogtreecommitdiffstats
path: root/framework/qml/TextField.qml
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-04-19 10:04:53 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-04-19 10:04:53 +0200
commit0190a9e9110951012cfeef9bc52dc78b1014b314 (patch)
treea4c32d0dd7c44626c2ff000fb484555a28ae09b2 /framework/qml/TextField.qml
parent747a501ada7e8a7895f5cd91de2cff9194a9cd2e (diff)
downloadkube-0190a9e9110951012cfeef9bc52dc78b1014b314.tar.gz
kube-0190a9e9110951012cfeef9bc52dc78b1014b314.zip
dont show placeholder text when there is actual tect in the textfield
Diffstat (limited to 'framework/qml/TextField.qml')
-rw-r--r--framework/qml/TextField.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/qml/TextField.qml b/framework/qml/TextField.qml
index 3d104f6a..688d0f5f 100644
--- a/framework/qml/TextField.qml
+++ b/framework/qml/TextField.qml
@@ -38,9 +38,9 @@ T.TextField {
38 width: root.width - (root.leftPadding + root.rightPadding) 38 width: root.width - (root.leftPadding + root.rightPadding)
39 height: root.height - (root.topPadding + root.bottomPadding) 39 height: root.height - (root.topPadding + root.bottomPadding)
40 40
41 visible: root.text == ""
41 text: root.placeholderText 42 text: root.placeholderText
42 //TODO font: 43 //TODO font:
43
44 color: Colors.disabledTextColor 44 color: Colors.disabledTextColor
45 elide: Text.ElideRight 45 elide: Text.ElideRight
46 } 46 }