summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-01-18 01:51:55 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2011-01-18 01:51:55 (GMT)
commitac2df91cf83918d1b247382fe75a30fafc1a896f (patch)
tree3fe748c3958ad0a55c311c9abf9681135da4227c /src/declarative/graphicsitems
parent5100cfbd888301d0dd040e8959a56353fa72573a (diff)
downloadQt-ac2df91cf83918d1b247382fe75a30fafc1a896f.zip
Qt-ac2df91cf83918d1b247382fe75a30fafc1a896f.tar.gz
Qt-ac2df91cf83918d1b247382fe75a30fafc1a896f.tar.bz2
Document TextInput::readOnly
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetextinput.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextinput.cpp b/src/declarative/graphicsitems/qdeclarativetextinput.cpp
index bfdcc9b..e35032b 100644
--- a/src/declarative/graphicsitems/qdeclarativetextinput.cpp
+++ b/src/declarative/graphicsitems/qdeclarativetextinput.cpp
@@ -345,6 +345,16 @@ void QDeclarativeTextInput::setHAlign(HAlignment align)
emit horizontalAlignmentChanged(d->hAlign);
}
+/*!
+ \qmlproperty bool TextInput::readOnly
+
+ Sets whether user input can modify the contents of the TextInput.
+
+ If readOnly is set to true, then user input will not affect the text
+ property. Any bindings or attempts to set the text property will still
+ work.
+*/
+
bool QDeclarativeTextInput::isReadOnly() const
{
Q_D(const QDeclarativeTextInput);