From 06b31b60fe3210d55d978205b1fa302feda5d819 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Tue, 12 Jun 2018 12:08:12 +0200 Subject: 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 --- src/imports/controls/imagine/TextField.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'src/imports/controls/imagine/TextField.qml') 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 } -- cgit v1.2.3