diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2011-06-24 15:26:20 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2011-06-27 11:12:24 (GMT) |
commit | 2ff9617cd6093a758dddea5ce50d1efd6e98ded8 (patch) | |
tree | 51e57e6ff6a25915b67cbd99b25e82be78b6e9a4 /src/corelib/kernel/qobject.cpp | |
parent | 9fc7e0ee3ff00c04f9301cbb45de09851cb55fa4 (diff) | |
download | Qt-2ff9617cd6093a758dddea5ce50d1efd6e98ded8.zip Qt-2ff9617cd6093a758dddea5ce50d1efd6e98ded8.tar.gz Qt-2ff9617cd6093a758dddea5ce50d1efd6e98ded8.tar.bz2 |
Fix event delevery order
Some functions (such as QObject::moveToThread) did not keep
the event ordered by priority.
And because qUpperBound is used to add events, that mean new
events would not be inserted in order.
Task-number: QTBUG19637
Change-Id: I38eb9addb1cdd45b8566e000361ac6e5f1f2c2b8
Reviewed-on: http://codereview.qt.nokia.com/733
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
(cherry picked from commit 7eeabcf70db658bca847498f618a94a375c95f5f)
Diffstat (limited to 'src/corelib/kernel/qobject.cpp')
-rw-r--r-- | src/corelib/kernel/qobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qobject.cpp b/src/corelib/kernel/qobject.cpp index b88643d..88618c3 100644 --- a/src/corelib/kernel/qobject.cpp +++ b/src/corelib/kernel/qobject.cpp @@ -1482,7 +1482,7 @@ void QObjectPrivate::setThreadData_helper(QThreadData *currentData, QThreadData continue; if (pe.receiver == q) { // move this post event to the targetList - targetData->postEventList.append(pe); + targetData->postEventList.addEvent(pe); const_cast<QPostEvent &>(pe).event = 0; ++eventsMoved; } |