diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-06-12 12:08:12 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-06-13 10:05:41 +0000 |
commit | 06b31b60fe3210d55d978205b1fa302feda5d819 (patch) | |
tree | 38f0e1e1811db6a16b81d7ab524bbcbb03b1f287 /src/imports/controls/imagine | |
parent | 08437d525a168df9abbda74d5b5ffddfd2841702 (diff) |
TextArea, TextField: use the control's renderType in placeholder text
The placeholder text's renderType should cohere to the renderType of
the control. This is already the case for font, and sometimes color
too.
This solution avoids the need to expose a new property.
Task-number: QTBUG-68769
Change-Id: I6711aea83b7b8ee27f56b9c905aa4870465e3fd9
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/imports/controls/imagine')
-rw-r--r-- | src/imports/controls/imagine/TextArea.qml | 1 | ||||
-rw-r--r-- | src/imports/controls/imagine/TextField.qml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/controls/imagine/TextArea.qml b/src/imports/controls/imagine/TextArea.qml index 9867a0bd..1e351ab8 100644 --- a/src/imports/controls/imagine/TextArea.qml +++ b/src/imports/controls/imagine/TextArea.qml @@ -74,6 +74,7 @@ T.TextArea { verticalAlignment: control.verticalAlignment visible: !control.length && !control.preeditText && (!control.activeFocus || control.horizontalAlignment !== Qt.AlignHCenter) elide: Text.ElideRight + renderType: control.renderType opacity: 0.5 } diff --git a/src/imports/controls/imagine/TextField.qml b/src/imports/controls/imagine/TextField.qml index 17827b95..1782c1e2 100644 --- a/src/imports/controls/imagine/TextField.qml +++ b/src/imports/controls/imagine/TextField.qml @@ -74,6 +74,7 @@ T.TextField { verticalAlignment: control.verticalAlignment visible: !control.length && !control.preeditText && (!control.activeFocus || control.horizontalAlignment !== Qt.AlignHCenter) elide: Text.ElideRight + renderType: control.renderType opacity: 0.5 } |