From 19e7cc53a7189c5c35a478d06b435433297771c5 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 29 Oct 2015 22:25:11 +0100 Subject: Simplify TextField & TextArea placeholder Better not expose the extra Text item in the API. Ideally it should be implemented as a scenegraph node. We might even want to promote the placeholderText property (and add placeholderColor) to TextInput and TextEdit in Qt Quick core. Change-Id: I4f443c77d1c696b87a50ee184f868713dd50316f Reviewed-by: Liang Qi --- tests/manual/fonts/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/manual/fonts/main.qml') diff --git a/tests/manual/fonts/main.qml b/tests/manual/fonts/main.qml index d59e9c1d..7bf9a0a7 100644 --- a/tests/manual/fonts/main.qml +++ b/tests/manual/fonts/main.qml @@ -80,8 +80,8 @@ ApplicationWindow { text: "TabButton" font.pointSize: control.font.pointSize } - TextField { placeholder.text: "TextField" } - TextArea { placeholder.text: "TextArea" } + TextField { placeholderText: "TextField" } + TextArea { placeholderText: "TextArea" } ToolButton { text: "ToolButton" } Tumbler { model: 3 } } -- cgit v1.2.3