diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-05-26 08:05:14 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-05-28 08:21:24 (GMT) |
commit | 66d68138c6b21d249daad27c904c688b78d21af6 (patch) | |
tree | 47b59359145d7482c26a13cc7b81d6158a56f527 /doc/src/snippets/code/src_script_qscriptclass.cpp | |
parent | 8d267e8d7a1e3374558ed302cfa415788ca74e02 (diff) | |
download | Qt-66d68138c6b21d249daad27c904c688b78d21af6.zip Qt-66d68138c6b21d249daad27c904c688b78d21af6.tar.gz Qt-66d68138c6b21d249daad27c904c688b78d21af6.tar.bz2 |
Speedup destruction of QObject if the eventloop is not entered.
QObjectPrivate::removePendingChildInsertedEvents intoduce O(n^2) complexity.
Remove this function and instead check the object has not been removed/reparented
Known side effects: if the object would be parented multiple times to the
same object, multiple QEvent::ChildInserted will be sends
This would also create the QWeakPointer external refcount for almost each objects.
Task-number: QTBUG-6546
Reviewed-by: Brad
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptclass.cpp')
0 files changed, 0 insertions, 0 deletions