diff options
author | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2009-05-15 09:43:09 (GMT) |
---|---|---|
committer | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2009-05-15 09:43:24 (GMT) |
commit | 9c3f5040bc9b80619ebe167c352ac8f0394f9b41 (patch) | |
tree | 070f0c0a315afcbe088402799886366c31308022 /doc/src/layout.qdoc | |
parent | ad679a7993042f1df8da8c2d90d325be3cf0113d (diff) | |
download | Qt-9c3f5040bc9b80619ebe167c352ac8f0394f9b41.zip Qt-9c3f5040bc9b80619ebe167c352ac8f0394f9b41.tar.gz Qt-9c3f5040bc9b80619ebe167c352ac8f0394f9b41.tar.bz2 |
Cleaning bug in custom layout example.
The example was using deleteAllItems() to delete items from the layout. This method is now part of the QT3_SUPPORT and shold not be used if not needed. Replaced by deleting all items one by one.
Task-number: 220656
Rev-by: janarve
Diffstat (limited to 'doc/src/layout.qdoc')
-rw-r--r-- | doc/src/layout.qdoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/layout.qdoc b/doc/src/layout.qdoc index 196999b..d97fcfc 100644 --- a/doc/src/layout.qdoc +++ b/doc/src/layout.qdoc @@ -343,9 +343,9 @@ \snippet doc/src/snippets/code/doc_src_layout.qdoc 4 The layout takes over responsibility of the items added. Since QLayoutItem - does not inherit QObject, we must delete the items manually. The function - QLayout::deleteAllItems() uses \c{takeAt()} defined above to delete all the - items in the layout. + does not inherit QObject, we must delete the items manually. In the + destructor, we remove each item from the list using \c{takeAt()}, and + then delete it. \snippet doc/src/snippets/code/doc_src_layout.qdoc 5 |