diff options
author | Casper van Donderen <casper.vandonderen@nokia.com> | 2011-07-14 09:11:03 (GMT) |
---|---|---|
committer | Casper van Donderen <casper.vandonderen@nokia.com> | 2011-07-14 09:11:03 (GMT) |
commit | 63b4e11ca2e7211e2a444de54eff3a3e233d64ce (patch) | |
tree | 7c3c604e5b5f2f3b7884c37c4635413815fc835b | |
parent | 41370bc3d87afbb5485d1246dc4bcd8ab6498aa8 (diff) | |
download | Qt-63b4e11ca2e7211e2a444de54eff3a3e233d64ce.zip Qt-63b4e11ca2e7211e2a444de54eff3a3e233d64ce.tar.gz Qt-63b4e11ca2e7211e2a444de54eff3a3e233d64ce.tar.bz2 |
Documentation fix.
Fixes: QTBUG-20390
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativetextinput.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextinput.cpp b/src/declarative/graphicsitems/qdeclarativetextinput.cpp index 7014571..3fd4fcd 100644 --- a/src/declarative/graphicsitems/qdeclarativetextinput.cpp +++ b/src/declarative/graphicsitems/qdeclarativetextinput.cpp @@ -560,13 +560,11 @@ QRect QDeclarativeTextInput::cursorRectangle() const \qmlproperty int TextInput::selectionStart The cursor position before the first character in the current selection. - Setting this and selectionEnd allows you to specify a selection in the - text edit. - Note that if selectionStart == selectionEnd then there is no current - selection. + This property is read-only. To change the selection, use select(start,end), + selectAll(), or selectWord(). - \sa selectionEnd, cursorPosition, selectedText, select() + \sa selectionEnd, cursorPosition, selectedText */ int QDeclarativeTextInput::selectionStart() const { @@ -578,13 +576,11 @@ int QDeclarativeTextInput::selectionStart() const \qmlproperty int TextInput::selectionEnd The cursor position after the last character in the current selection. - Setting this and selectionStart allows you to specify a selection in the - text edit. - Note that if selectionStart == selectionEnd then there is no current - selection. + This property is read-only. To change the selection, use select(start,end), + selectAll(), or selectWord(). - \sa selectionStart, cursorPosition, selectedText, select() + \sa selectionStart, cursorPosition, selectedText */ int QDeclarativeTextInput::selectionEnd() const { |