summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2017-08-23 16:13:49 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2018-03-05 08:57:03 +0000
commit57b1be158e9e9745219838313fed730aaf4937b6 (patch)
tree03f588e6b60d2fd1a12af437de4e71d2c643c976 /src
parent2203bb580dbd40cb51a61a0179548550f1041539 (diff)
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 <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/gui/text/qtextdocument.cpp6
1 files changed, 3 insertions, 3 deletions
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