diff options
-rw-r--r-- | src/gui/text/qtextdocument.cpp | 2 | ||||
-rw-r--r-- | src/gui/text/qtextdocument.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/text/qtextdocument.cpp b/src/gui/text/qtextdocument.cpp index 3820b415a3..3a11266e0a 100644 --- a/src/gui/text/qtextdocument.cpp +++ b/src/gui/text/qtextdocument.cpp @@ -1301,6 +1301,7 @@ QTextCursor QTextDocument::find(const QString &subString, const QTextCursor &cur } +#ifndef QT_NO_REGEXP static bool findInBlock(const QTextBlock &block, const QRegExp &expression, int offset, QTextDocument::FindFlags options, QTextCursor *cursor) { @@ -1420,6 +1421,7 @@ QTextCursor QTextDocument::find(const QRegExp &expr, const QTextCursor &cursor, } return find(expr, pos, options); } +#endif // QT_REGEXP #ifndef QT_NO_REGULAREXPRESSION static bool findInBlock(const QTextBlock &block, const QRegularExpression &expression, int offset, diff --git a/src/gui/text/qtextdocument.h b/src/gui/text/qtextdocument.h index 83e255bd96..271c29b16b 100644 --- a/src/gui/text/qtextdocument.h +++ b/src/gui/text/qtextdocument.h @@ -161,8 +161,11 @@ public: QTextCursor find(const QString &subString, int from = 0, FindFlags options = 0) const; QTextCursor find(const QString &subString, const QTextCursor &cursor, FindFlags options = 0) const; + +#ifndef QT_NO_REGEXP QTextCursor find(const QRegExp &expr, int from = 0, FindFlags options = 0) const; QTextCursor find(const QRegExp &expr, const QTextCursor &cursor, FindFlags options = 0) const; +#endif #ifndef QT_NO_REGULAREXPRESSION QTextCursor find(const QRegularExpression &expr, int from = 0, FindFlags options = 0) const; |