Documentation fix.
authorCasper van Donderen <casper.vandonderen@nokia.com>
Thu, 14 Jul 2011 09:15:36 +0000 (11:15 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 22 Jul 2011 06:56:32 +0000 (08:56 +0200)
Fixes: QTBUG-20390

Change-Id: I30a4b4d1618f80c9a1246955a9b1d6c9f8fbfd57
Reviewed-on: http://codereview.qt.nokia.com/1655
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
src/qtquick1/graphicsitems/qdeclarativetextinput.cpp

index 9176bbd..582e3c7 100644 (file)
@@ -566,13 +566,11 @@ QRect QDeclarative1TextInput::cursorRectangle() const
     \qmlproperty int QtQuick1::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 QDeclarative1TextInput::selectionStart() const
 {
@@ -584,13 +582,11 @@ int QDeclarative1TextInput::selectionStart() const
     \qmlproperty int QtQuick1::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 QDeclarative1TextInput::selectionEnd() const
 {