From 57b1be158e9e9745219838313fed730aaf4937b6 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 23 Aug 2017 16:13:49 +0200 Subject: Fix docs of QTextDocument::find with regards to default case sensitivity The default value for a default constructed FindFlags QFlag is zero and FindCaseSensitively is 0x2. Therefore the default behavior for find() is case insensitive. Change-Id: Id3419c3562fc6170fdb281098a22dd8205603847 Task-number: QTBUG-62660 Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/gui/text/qtextdocument.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/gui/text/qtextdocument.cpp b/src/gui/text/qtextdocument.cpp index d95932f4db..e27b388762 100644 --- a/src/gui/text/qtextdocument.cpp +++ b/src/gui/text/qtextdocument.cpp @@ -1349,7 +1349,7 @@ QTextCursor QTextDocument::find(const QString &subString, int from, FindFlags op If the given \a 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 + By default the search is case insensitive, and can match text anywhere in the document. */ QTextCursor QTextDocument::find(const QString &subString, const QTextCursor &cursor, FindFlags options) const @@ -1472,7 +1472,7 @@ QTextCursor QTextDocument::find(const QRegExp & expr, int from, FindFlags option If the given \a 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 + By default the search is case insensitive, and can match text anywhere in the document. */ QTextCursor QTextDocument::find(const QRegExp &expr, const QTextCursor &cursor, FindFlags options) const @@ -1599,7 +1599,7 @@ QTextCursor QTextDocument::find(const QRegularExpression &expr, int from, FindFl If the given \a 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 + By default the search is case insensitive, and can match text anywhere in the document. */ QTextCursor QTextDocument::find(const QRegularExpression &expr, const QTextCursor &cursor, FindFlags options) const -- cgit v1.2.3