summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-05-19 09:52:23 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-05-19 09:52:23 (GMT)
commiteaee2e3b70a5e245b82fa8991d7ff580e6e48132 (patch)
treea86fa7fd804f80c30fe996f711aa02f2c00500b9 /doc/src/snippets
parentffecdf0bf9f25f7ab9aa4f69e37507dd595fecea (diff)
parentba5fb9f05c891feac8ab69006189de1aaafebc18 (diff)
downloadQt-eaee2e3b70a5e245b82fa8991d7ff580e6e48132.zip
Qt-eaee2e3b70a5e245b82fa8991d7ff580e6e48132.tar.gz
Qt-eaee2e3b70a5e245b82fa8991d7ff580e6e48132.tar.bz2
Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5
Diffstat (limited to 'doc/src/snippets')
-rw-r--r--doc/src/snippets/code/doc_src_layout.qdoc6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/src/snippets/code/doc_src_layout.qdoc b/doc/src/snippets/code/doc_src_layout.qdoc
index fedcf0c..60f36b0 100644
--- a/doc/src/snippets/code/doc_src_layout.qdoc
+++ b/doc/src/snippets/code/doc_src_layout.qdoc
@@ -67,7 +67,9 @@ void CardLayout::addItem(QLayoutItem *item)
//! [5]
CardLayout::~CardLayout()
{
- deleteAllItems();
+ QLayoutItem *item;
+ while ((item = takeAt(0)))
+ delete item;
}
//! [5]
@@ -121,4 +123,4 @@ QSize CardLayout::minimumSize() const
}
return s + n*QSize(spacing(), spacing());
}
-//! [7] \ No newline at end of file
+//! [7]