summaryrefslogtreecommitdiff
path: root/doc/src/projects/creator-projects-custom-wizards.qdoc
diff options
context:
space:
mode:
authorAurindam Jana <aurindam.jana@digia.com>2013-05-17 12:16:09 +0200
committerAurindam Jana <aurindam.jana@digia.com>2013-05-17 16:16:38 +0200
commit3f39943a37821cc2c4559560ab7eb2bb1649ef38 (patch)
treeac912358aefa7226a05f0c3781a26285256073df /doc/src/projects/creator-projects-custom-wizards.qdoc
parent7e0dd72252b0696b4bf924c3249d8810f966c174 (diff)
downloadqt-creator-3f39943a37821cc2c4559560ab7eb2bb1649ef38.tar.gz
CustomWizard: Add a placeholder field for QLineEdit
The XML file now has a placeholdertext attribute that sets the place holder text for the corrsponding QLineEdit. Change-Id: I537721a5e5be796f4f88054751e66e557e718948 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'doc/src/projects/creator-projects-custom-wizards.qdoc')
-rw-r--r--doc/src/projects/creator-projects-custom-wizards.qdoc5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/src/projects/creator-projects-custom-wizards.qdoc b/doc/src/projects/creator-projects-custom-wizards.qdoc
index 4aefc1295e..9c50be37ad 100644
--- a/doc/src/projects/creator-projects-custom-wizards.qdoc
+++ b/doc/src/projects/creator-projects-custom-wizards.qdoc
@@ -257,7 +257,7 @@
<fieldpagetitle xml:lang="de">Hallo Welt Parameter</fieldpagetitle>
<fields>
<field mandatory="true" name="MESSAGE">
- <fieldcontrol class="QLineEdit" validator='^[^"]+$' defaulttext="Hello world!" />
+ <fieldcontrol class="QLineEdit" validator='^[^"]+$' defaulttext="Hello world!" placeholdertext="Enter a message"/>
<fielddescription>Hello world message:</fielddescription>
<fielddescription xml:lang="de">Hallo-Welt-Nachricht:</fielddescription>
</field>
@@ -290,6 +290,9 @@
\li \c defaulttext specifies text that appears in the field by
default.
+ \li For a QLineEdit, \c placeholdertext specifies placeholder text that appears in the
+ field.
+
\li \c fielddescription specifies the field name that appears on the
wizard page.