aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/fusion
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2018-06-12 12:08:12 +0200
committerMitch Curtis <mitch.curtis@qt.io>2018-06-13 10:05:41 +0000
commit06b31b60fe3210d55d978205b1fa302feda5d819 (patch)
tree38f0e1e1811db6a16b81d7ab524bbcbb03b1f287 /src/imports/controls/fusion
parent08437d525a168df9abbda74d5b5ffddfd2841702 (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/fusion')
-rw-r--r--src/imports/controls/fusion/TextArea.qml1
-rw-r--r--src/imports/controls/fusion/TextField.qml1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/controls/fusion/TextArea.qml b/src/imports/controls/fusion/TextArea.qml
index 36d9db04..9165116c 100644
--- a/src/imports/controls/fusion/TextArea.qml
+++ b/src/imports/controls/fusion/TextArea.qml
@@ -72,5 +72,6 @@ T.TextArea {
verticalAlignment: control.verticalAlignment
visible: !control.length && !control.preeditText && (!control.activeFocus || control.horizontalAlignment !== Qt.AlignHCenter)
elide: Text.ElideRight
+ renderType: control.renderType
}
}
diff --git a/src/imports/controls/fusion/TextField.qml b/src/imports/controls/fusion/TextField.qml
index 2ea5c967..7b8984d2 100644
--- a/src/imports/controls/fusion/TextField.qml
+++ b/src/imports/controls/fusion/TextField.qml
@@ -72,6 +72,7 @@ T.TextField {
verticalAlignment: control.verticalAlignment
visible: !control.length && !control.preeditText && (!control.activeFocus || control.horizontalAlignment !== Qt.AlignHCenter)
elide: Text.ElideRight
+ renderType: control.renderType
}
background: Rectangle {