summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc/snippets/code
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2020-07-13 09:40:58 +0200
committerKai Koehne <kai.koehne@qt.io>2020-07-14 17:07:00 +0200
commit77c2ac559fc9085608ec5a6995fcf4ec8446ec67 (patch)
treed3ef923c7ef0112a417fc3b9b81985a98601c42b /src/corelib/doc/snippets/code
parentca54b741d6edda24773137aacee229db31dd3585 (diff)
Doc: Mark API in Q[Mutable]HashIterator as deprecated
The reverse iteration API got deprecated in code already in commit dbb54805f63f9e . Now also fix the documentation. Fixes: QTBUG-85482 Pick-to: 5.15 Change-Id: I3b575f60dabfe1005b9744d17c257da3e22817c5 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/doc/snippets/code')
-rw-r--r--src/corelib/doc/snippets/code/doc_src_qiterator.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/corelib/doc/snippets/code/doc_src_qiterator.cpp b/src/corelib/doc/snippets/code/doc_src_qiterator.cpp
index 265e4a724a..ed0cf9e329 100644
--- a/src/corelib/doc/snippets/code/doc_src_qiterator.cpp
+++ b/src/corelib/doc/snippets/code/doc_src_qiterator.cpp
@@ -195,16 +195,6 @@ while (i.hasNext()) {
//! [29]
-//! [30]
-QHashIterator<int, QWidget *> i(hash);
-i.toBack();
-while (i.hasPrevious()) {
- i.previous();
- qDebug() << i.key() << ": " << i.value();
-}
-//! [30]
-
-
//! [31]
QHashIterator<int, QWidget *> i(hash);
while (i.findNext(widget)) {
@@ -265,16 +255,6 @@ while (i.hasNext()) {
//! [36]
-//! [37]
-QMutableHashIterator<int, QWidget *> i(hash);
-i.toBack();
-while (i.hasPrevious()) {
- i.previous();
- qDebug() << i.key() << ": " << i.value();
-}
-//! [37]
-
-
//! [38]
QMutableHashIterator<int, QWidget *> i(hash);
while (i.findNext(widget)) {