diff options
author | artoka <arto.katajasalo@digia.com> | 2011-11-01 12:47:09 (GMT) |
---|---|---|
committer | Casper van Donderen <casper.vandonderen@nokia.com> | 2011-11-01 12:47:09 (GMT) |
commit | c0b59df7488281598d750fe6dcf69d578bc81ff4 (patch) | |
tree | 22fe8b714e82476bb2de7996bb924773fb173029 /doc | |
parent | f0637d4c663ccfc45d337412c209fee1789f354d (diff) | |
download | Qt-c0b59df7488281598d750fe6dcf69d578bc81ff4.zip Qt-c0b59df7488281598d750fe6dcf69d578bc81ff4.tar.gz Qt-c0b59df7488281598d750fe6dcf69d578bc81ff4.tar.bz2 |
Fix for QVector::toList - code example documentation.
Code example in the documentation used QString values in QVector<double>.
Task-number: QTBUG-21067
Merge-request: 2698
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/snippets/code/src_corelib_tools_qvector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/snippets/code/src_corelib_tools_qvector.cpp b/doc/src/snippets/code/src_corelib_tools_qvector.cpp index fc46d91..fc1a7f7 100644 --- a/doc/src/snippets/code/src_corelib_tools_qvector.cpp +++ b/doc/src/snippets/code/src_corelib_tools_qvector.cpp @@ -148,10 +148,10 @@ vector.lastIndexOf("X"); // returns -1 //! [14] -QVector<double> vect; +QVector<QString> vect; vect << "red" << "green" << "blue" << "black"; -QList<double> list = vect.toList(); +QList<QString> list = vect.toList(); // list: ["red", "green", "blue", "black"] //! [14] |