summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-12-13 05:34:23 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2010-12-13 05:34:59 (GMT)
commit409f60f0f6fd2c2bad6125d0463c812ba1b1180a (patch)
tree6b73ad57bead122220c7cf71cf4a4e2eea6e06f5 /src/declarative
parent3006bdd1eab665d3a0e666975246d2fb20b578af (diff)
downloadQt-409f60f0f6fd2c2bad6125d0463c812ba1b1180a.zip
Qt-409f60f0f6fd2c2bad6125d0463c812ba1b1180a.tar.gz
Qt-409f60f0f6fd2c2bad6125d0463c812ba1b1180a.tar.bz2
Document TextInput property maximumLength
Task-number: Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetextinput.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextinput.cpp b/src/declarative/graphicsitems/qdeclarativetextinput.cpp
index 0deacf8..2fb7ace 100644
--- a/src/declarative/graphicsitems/qdeclarativetextinput.cpp
+++ b/src/declarative/graphicsitems/qdeclarativetextinput.cpp
@@ -361,6 +361,14 @@ void QDeclarativeTextInput::setReadOnly(bool ro)
emit readOnlyChanged(ro);
}
+/*!
+ \qmlproperty int TextInput::maximumLength
+ The maximum permitted length of the text in the TextInput.
+
+ If the text is too long, it is truncated at the limit.
+
+ By default, this property contains a value of 32767.
+*/
int QDeclarativeTextInput::maxLength() const
{
Q_D(const QDeclarativeTextInput);