diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2010-12-16 10:57:06 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2010-12-16 13:30:59 (GMT) |
commit | ab8a9e77d877fd53eaec8dca1eeca619a4ba81d6 (patch) | |
tree | fc39e0b3a42e8bb721b6e50c34ac200a7513ec0e /src/gui | |
parent | 14b4c009f9b0b83d16aec9f5b396f97efd49458c (diff) | |
download | Qt-ab8a9e77d877fd53eaec8dca1eeca619a4ba81d6.zip Qt-ab8a9e77d877fd53eaec8dca1eeca619a4ba81d6.tar.gz Qt-ab8a9e77d877fd53eaec8dca1eeca619a4ba81d6.tar.bz2 |
Avoid duplicate resize event
No need to have two resize events in queue for same widget, so do
not post a new one if one is already pending in
QSymbianControl::SizeChanged().
Reviewed-by: Sami Merila
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qapplication_s60.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp index 6db1fa8..181fcc7 100644 --- a/src/gui/kernel/qapplication_s60.cpp +++ b/src/gui/kernel/qapplication_s60.cpp @@ -1174,8 +1174,10 @@ void QSymbianControl::SizeChanged() if (!slowResize && tlwExtra) tlwExtra->inTopLevelResize = false; } else { - QResizeEvent *e = new QResizeEvent(newSize, oldSize); - QApplication::postEvent(qwidget, e); + if (!qwidget->testAttribute(Qt::WA_PendingResizeEvent)) { + QResizeEvent *e = new QResizeEvent(newSize, oldSize); + QApplication::postEvent(qwidget, e); + } } } |