From 354e285209531da86166d94ae5b0fbf749decbcd Mon Sep 17 00:00:00 2001 From: Casper van Donderen Date: Thu, 14 Jul 2011 11:15:36 +0200 Subject: [PATCH] Documentation fix. Fixes: QTBUG-20390 Change-Id: I30a4b4d1618f80c9a1246955a9b1d6c9f8fbfd57 Reviewed-on: http://codereview.qt.nokia.com/1655 Reviewed-by: Qt Sanity Bot Reviewed-by: Casper van Donderen --- .../graphicsitems/qdeclarativetextinput.cpp | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/qtquick1/graphicsitems/qdeclarativetextinput.cpp b/src/qtquick1/graphicsitems/qdeclarativetextinput.cpp index 9176bbd..582e3c7 100644 --- a/src/qtquick1/graphicsitems/qdeclarativetextinput.cpp +++ b/src/qtquick1/graphicsitems/qdeclarativetextinput.cpp @@ -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 { -- 1.7.2.5