From e08f764fa7000018711b86000835f2ce7eca3fc1 Mon Sep 17 00:00:00 2001 From: Samuel Gaist Date: Tue, 24 Jan 2017 11:10:39 +0100 Subject: Doc: update QtConcurrent snippets to use QRegularExpression Update the QtConcurrent code snippets to use the new QRegularExpression class in place of the deprecated QRegExp. Change-Id: I1366f902fc46bbeccc4013dd8adcf5fbfda13aed Reviewed-by: Sze Howe Koh --- .../doc/snippets/code/src_concurrent_qtconcurrentfilter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/concurrent') diff --git a/src/concurrent/doc/snippets/code/src_concurrent_qtconcurrentfilter.cpp b/src/concurrent/doc/snippets/code/src_concurrent_qtconcurrentfilter.cpp index d09c7658d4..d0deed4cc8 100644 --- a/src/concurrent/doc/snippets/code/src_concurrent_qtconcurrentfilter.cpp +++ b/src/concurrent/doc/snippets/code/src_concurrent_qtconcurrentfilter.cpp @@ -141,12 +141,12 @@ QFuture collage = QtConcurrent::filteredReduced(images, &QImage::isGrays //! [9] -bool QString::contains(const QRegExp ®exp) const; +bool QString::contains(const QRegularExpression ®exp) const; //! [9] //! [10] -std::bind(&QString::contains, QRegExp("^\\S+$")); // matches strings without whitespace +std::bind(&QString::contains, QRegularExpression("^\\S+$")); // matches strings without whitespace //! [10] @@ -157,7 +157,7 @@ bool contains(const QString &string) //! [12] QStringList strings = ...; -std::bind(static_cast( &QString::contains ), QRegExp("..." )); +std::bind(static_cast( &QString::contains ), QRegularExpression("...")); //! [12] //! [13] -- cgit v1.2.3