From c1e06e3747b3fdb54f2a3913ef4d6ba0485dd3ed Mon Sep 17 00:00:00 2001 From: Jens Bache-Wiig Date: Sun, 29 Sep 2013 14:47:50 +0200 Subject: Add placeholderTextColor to TextFieldStyle Change-Id: I33308f5fe4a6778c438a95a9827c5bea7d95763a Reviewed-by: J-P Nurmi --- src/controls/Styles/Base/TextFieldStyle.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/controls/Styles/Base/TextFieldStyle.qml b/src/controls/Styles/Base/TextFieldStyle.qml index 561912c3..1ff0919d 100644 --- a/src/controls/Styles/Base/TextFieldStyle.qml +++ b/src/controls/Styles/Base/TextFieldStyle.qml @@ -91,6 +91,11 @@ Style { /*! The highlighted text color, used in selections. */ property color selectedTextColor: __syspal.highlightedText + /*! The placeholder text color, used when the text field is empty. + \since 5.2 + */ + property color placeholderTextColor: Qt.rgba(0, 0, 0, 0.5) + /*! The background of the text field. */ property Component background: Item { implicitWidth: 100 @@ -134,7 +139,7 @@ Style { implicitWidth: backgroundLoader.implicitWidth ? backgroundLoader.implicitWidth : 100 implicitHeight: backgroundLoader.implicitHeight ? backgroundLoader.implicitHeight : 20 - property color placeholderTextColor: Qt.rgba(0, 0, 0, 0.5) + property color placeholderTextColor: style.placeholderTextColor property font font: style.font Loader { -- cgit v1.2.1