summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-09-29 14:47:50 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-30 12:54:54 +0200
commitc1e06e3747b3fdb54f2a3913ef4d6ba0485dd3ed (patch)
tree1aa8437d1b1772a4679024485cf60e7a4e25565f /src
parent4ed5d8048f45557dbbdeb2be1fc8556c7e0df5b9 (diff)
downloadqtquickcontrols-c1e06e3747b3fdb54f2a3913ef4d6ba0485dd3ed.tar.gz
Add placeholderTextColor to TextFieldStyle
Change-Id: I33308f5fe4a6778c438a95a9827c5bea7d95763a Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/controls/Styles/Base/TextFieldStyle.qml7
1 files changed, 6 insertions, 1 deletions
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 {