diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-11-04 12:37:01 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-11-04 12:37:01 (GMT) |
commit | 052a34bef9cf682e3ea0e2183223b0dcab3c05b7 (patch) | |
tree | b6d49c7bac01487274a09638b9d11dc0fe748908 | |
parent | 4567799c51b4126c693746e7c5c963faddb40225 (diff) | |
download | Qt-052a34bef9cf682e3ea0e2183223b0dcab3c05b7.zip Qt-052a34bef9cf682e3ea0e2183223b0dcab3c05b7.tar.gz Qt-052a34bef9cf682e3ea0e2183223b0dcab3c05b7.tar.bz2 |
Fix new failure in compatibilityChildInsertedEvents
The new QEvent::WinIdChange event is sent when QWidget::show() creates
the native window id, so we need to expect that event as well.
Reviewed-by: TrustMe
-rw-r--r-- | tests/auto/qwidget/tst_qwidget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp index 5630370..3595b84 100644 --- a/tests/auto/qwidget/tst_qwidget.cpp +++ b/tests/auto/qwidget/tst_qwidget.cpp @@ -6319,6 +6319,7 @@ void tst_QWidget::compatibilityChildInsertedEvents() widget.show(); expected = EventRecorder::EventList() + << qMakePair(&widget, QEvent::WinIdChange) << qMakePair(&widget, QEvent::Polish) << qMakePair(&widget, QEvent::Move) << qMakePair(&widget, QEvent::Resize) @@ -6404,6 +6405,7 @@ void tst_QWidget::compatibilityChildInsertedEvents() widget.show(); expected = EventRecorder::EventList() + << qMakePair(&widget, QEvent::WinIdChange) << qMakePair(&widget, QEvent::Polish) #ifdef QT_HAS_QT3SUPPORT << qMakePair(&widget, QEvent::ChildInserted) @@ -6501,6 +6503,7 @@ void tst_QWidget::compatibilityChildInsertedEvents() widget.show(); expected = EventRecorder::EventList() + << qMakePair(&widget, QEvent::WinIdChange) << qMakePair(&widget, QEvent::Polish) #ifdef QT_HAS_QT3SUPPORT << qMakePair(&widget, QEvent::ChildInserted) |