diff options
author | Caroline Chao <caroline.chao@digia.com> | 2013-10-16 13:59:44 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-17 07:36:40 +0200 |
commit | 0bf5b80baee78f9fc7145304821481556ccba78b (patch) | |
tree | 209c1c0377550ffe746a261d742f927091e6fbf8 | |
parent | 32409d98b5c1751f4954a8e0c4035fe0c62cffcf (diff) | |
download | qtquickcontrols-0bf5b80baee78f9fc7145304821481556ccba78b.tar.gz |
TextField: Also hide placeholderText when text input is composing
Change-Id: I33acdb7edfb6f9792e36e0f9472f0de66ce788d5
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
-rw-r--r-- | src/controls/TextField.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/TextField.qml b/src/controls/TextField.qml index 9d543aea..d8829403 100644 --- a/src/controls/TextField.qml +++ b/src/controls/TextField.qml @@ -557,7 +557,7 @@ Control { font: textInput.font horizontalAlignment: textInput.horizontalAlignment verticalAlignment: textInput.verticalAlignment - opacity: !textInput.text.length ? 1 : 0 + opacity: !textInput.text.length && !textInput.inputMethodComposing ? 1 : 0 color: __panel ? __panel.placeholderTextColor : "darkgray" clip: contentWidth > width; elide: Text.ElideRight |