QTextDocument: Correct parameter documentation
Change-Id: Ie91aa2731732e4a6a1abdc2fc7ae00876c5d76e2 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>bb10
parent
d3a5321e57
commit
eb5dc9ed1c
|
|
@ -1345,12 +1345,10 @@ static bool findInBlock(const QTextBlock &block, const QRegExp &expression, int
|
|||
}
|
||||
|
||||
/*!
|
||||
\fn QTextCursor QTextDocument::find(const QRegExp & expr, int position, FindFlags options) const
|
||||
|
||||
\overload
|
||||
|
||||
Finds the next occurrence, matching the regular expression, \a expr, in the document.
|
||||
The search starts at the given \a position, and proceeds forwards
|
||||
The search starts at the given \a from position, and proceeds forwards
|
||||
through the document unless specified otherwise in the search options.
|
||||
The \a options control the type of search performed. The FindCaseSensitively
|
||||
option is ignored for this overload, use QRegExp::caseSensitivity instead.
|
||||
|
|
@ -1358,7 +1356,7 @@ static bool findInBlock(const QTextBlock &block, const QRegExp &expression, int
|
|||
Returns a cursor with the match selected if a match was found; otherwise
|
||||
returns a null cursor.
|
||||
|
||||
If the \a position is 0 (the default) the search begins from the beginning
|
||||
If the \a from position is 0 (the default) the search begins from the beginning
|
||||
of the document; otherwise it begins at the specified position.
|
||||
*/
|
||||
QTextCursor QTextDocument::find(const QRegExp & expr, int from, FindFlags options) const
|
||||
|
|
@ -1402,10 +1400,10 @@ QTextCursor QTextDocument::find(const QRegExp & expr, int from, FindFlags option
|
|||
}
|
||||
|
||||
/*!
|
||||
\fn QTextCursor QTextDocument::find(const QRegExp &expr, const QTextCursor &cursor, FindFlags options) const
|
||||
\overload
|
||||
|
||||
Finds the next occurrence, matching the regular expression, \a expr, in the document.
|
||||
The search starts at the position of the given \a cursor, and proceeds
|
||||
The search starts at the position of the given \a from cursor, and proceeds
|
||||
forwards through the document unless specified otherwise in the search
|
||||
options. The \a options control the type of search performed. The FindCaseSensitively
|
||||
option is ignored for this overload, use QRegExp::caseSensitivity instead.
|
||||
|
|
@ -1413,7 +1411,7 @@ QTextCursor QTextDocument::find(const QRegExp & expr, int from, FindFlags option
|
|||
Returns a cursor with the match selected if a match was found; otherwise
|
||||
returns a null cursor.
|
||||
|
||||
If the given \a cursor has a selection, the search begins after the
|
||||
If the given \a from cursor has a selection, the search begins after the
|
||||
selection; otherwise it begins at the cursor's position.
|
||||
|
||||
By default the search is case-sensitive, and can match text anywhere in the
|
||||
|
|
|
|||
Loading…
Reference in New Issue