Doc: Fix a typo in QtConcurrent example snippet
And use different wording to describe QtConcurrent::filtered(), as it doesn't modify the sequence it operates on. Change-Id: I768c0d121e027c5de36ba7bd548c2d4c2a7f1bd9 Reviewed-by: Martin Smith <martin.smith@theqtcompany.com>
This commit is contained in:
parent
431bc3321f
commit
dbf35d7571
@ -103,9 +103,9 @@ QSet<QString> dictionary = QtConcurrent::blockingFilteredReduced(strings, allLow
|
||||
//! [7]
|
||||
// keep only images with an alpha channel
|
||||
QList<QImage> images = ...;
|
||||
QFuture<void> alphaImages = QtConcurrent::filter(strings, &QImage::hasAlphaChannel);
|
||||
QFuture<void> alphaImages = QtConcurrent::filter(images, &QImage::hasAlphaChannel);
|
||||
|
||||
// keep only gray scale images
|
||||
// retrieve gray scale images
|
||||
QList<QImage> images = ...;
|
||||
QFuture<QImage> grayscaleImages = QtConcurrent::filtered(images, &QImage::isGrayscale);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user