diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-08-23 10:16:59 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-08-23 10:32:54 (GMT) |
commit | 42a9fe3042945937839eda3578655ca091422b28 (patch) | |
tree | 469836c6a28b06c3c2724e5037098c015a4241ad /mkspecs/linux-g++-64 | |
parent | fa11bd40388e437e4f29aab93f1c368d428e28e3 (diff) | |
download | Qt-42a9fe3042945937839eda3578655ca091422b28.zip Qt-42a9fe3042945937839eda3578655ca091422b28.tar.gz Qt-42a9fe3042945937839eda3578655ca091422b28.tar.bz2 |
Doc: QtConcurrent::run. Make sure the example actually compiles
QString::split has overload, and if you want to take the address of a
function with overload, you need to cast it. If we really wanted to use
QString::split, we would have to do
QFuture<QStringList> future = QtConcurrent::run(string, static_cast<QStringList (QString::*)(const QString &, QString::SplitBehavior, Qt::CaseSensitivity ) const>(&QString::split), QString (", "), QString::KeepEmptyParts, Qt::CaseSensitive);
So use QByteArray::split as an example instead
Task-number: QTBUG-12897
Reviewed-by: David Boddie
Diffstat (limited to 'mkspecs/linux-g++-64')
0 files changed, 0 insertions, 0 deletions