diff options
author | Samuel Gaist <samuel.gaist@edeltech.ch> | 2017-01-24 11:10:39 +0100 |
---|---|---|
committer | Samuel Gaist <samuel.gaist@edeltech.ch> | 2017-02-04 23:47:26 +0000 |
commit | e08f764fa7000018711b86000835f2ce7eca3fc1 (patch) | |
tree | 8198fb0fed1e39ac8e837430aaa99186df7e2370 /src/concurrent/doc | |
parent | 0e168f2c4e6f4ce3b98e86d9b140ee9fc3a9cf00 (diff) |
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 <szehowe.koh@gmail.com>
Diffstat (limited to 'src/concurrent/doc')
-rw-r--r-- | src/concurrent/doc/snippets/code/src_concurrent_qtconcurrentfilter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<QImage> 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<bool(QString::*)(const QRegExp&)>( &QString::contains ), QRegExp("..." )); +std::bind(static_cast<bool(QString::*)(const QRegularExpression&)>( &QString::contains ), QRegularExpression("...")); //! [12] //! [13] |