summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_script_qscriptclass.cpp
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-05-05 15:56:43 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-05-05 15:56:43 (GMT)
commit7d39e871e679be8afc10c7109a5cc396ead886f7 (patch)
tree810c06e4304ee825f86f2dbd0c1c18077bc7e372 /doc/src/snippets/code/src_script_qscriptclass.cpp
parent200afdbd684bc7b6dca96d6fccb59d4cd078a02e (diff)
downloadQt-7d39e871e679be8afc10c7109a5cc396ead886f7.zip
Qt-7d39e871e679be8afc10c7109a5cc396ead886f7.tar.gz
Qt-7d39e871e679be8afc10c7109a5cc396ead886f7.tar.bz2
Fix deletion of indexed items, and fix comments.
It was not a good idea to delete all items in the middle of the loop when clearing the scene since we change the content of indexedItems by deleting one of them. We need to store first all top level items in a temporary list and then delete them in one shot (that will delete their children as well).
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptclass.cpp')
0 files changed, 0 insertions, 0 deletions