summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorStian Sandvik Thomassen <stian.thomassen@nokia.com>2009-08-02 23:47:56 (GMT)
committerStian Sandvik Thomassen <stian.thomassen@nokia.com>2009-08-02 23:47:56 (GMT)
commit9ce6d885f4c141fabce1427ff776e02bdb6846ae (patch)
treee3c18d0fcae889c987ab3490e4589735526acab6 /doc
parent5aed3db0a4084f470769ad4b965001f17b878c79 (diff)
downloadQt-9ce6d885f4c141fabce1427ff776e02bdb6846ae.zip
Qt-9ce6d885f4c141fabce1427ff776e02bdb6846ae.tar.gz
Qt-9ce6d885f4c141fabce1427ff776e02bdb6846ae.tar.bz2
Doc: Replaced QSet<double> with QSet<int> in QList::fromSet() example
We don't implement qHash() for double, so let's not use QSet<double> in the documentation.
Diffstat (limited to 'doc')
-rw-r--r--doc/src/snippets/code/src_corelib_tools_qlistdata.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/snippets/code/src_corelib_tools_qlistdata.cpp b/doc/src/snippets/code/src_corelib_tools_qlistdata.cpp
index 7d75e1b..3b9a756 100644
--- a/doc/src/snippets/code/src_corelib_tools_qlistdata.cpp
+++ b/doc/src/snippets/code/src_corelib_tools_qlistdata.cpp
@@ -190,10 +190,10 @@ QVector<QString> vect = list.toVector();
//! [23]
-QSet<double> set;
-set << 20.0 << 30.0 << 40.0 << ... << 70.0;
+QSet<int> set;
+set << 20 << 30 << 40 << ... << 70;
-QList<double> list = QList<double>::fromSet(set);
+QList<int> list = QList<int>::fromSet(set);
qSort(list);
//! [23]