diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-04-19 10:04:53 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-04-19 10:04:53 +0200 |
commit | 0190a9e9110951012cfeef9bc52dc78b1014b314 (patch) | |
tree | a4c32d0dd7c44626c2ff000fb484555a28ae09b2 | |
parent | 747a501ada7e8a7895f5cd91de2cff9194a9cd2e (diff) | |
download | kube-0190a9e9110951012cfeef9bc52dc78b1014b314.tar.gz kube-0190a9e9110951012cfeef9bc52dc78b1014b314.zip |
dont show placeholder text when there is actual tect in the textfield
-rw-r--r-- | framework/qml/TextField.qml | 2 |
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 | } |