Work on the QWidget-autotest.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Thu, 26 Jul 2012 12:04:09 +0000 (14:04 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 27 Jul 2012 22:09:45 +0000 (00:09 +0200)
commit2f587ee689f7d29f08090022c171d59a66c1d730
treeb38498d48023dcd458ce96d88c61928ee9f094a8
parent8cf7cf0cb96188b42e10958711f8c3aa016396c3
Work on the QWidget-autotest.

- Introduce smart pointers to delete widgets and resources
  to ensure tests are not affected by left-over widgets
  also in case of failure.
- Replace deprecated QTest::qWaitForWindowShown() by
  QTest::qWaitForWindowExposed() and use QVERIFY,
  remove some hard-coded timeouts.
- Set some titles and object names.
- Add verbose debug output of event lists in tests
  childEvents.
- Set minimum sizes on widgets to avoid Windows warnings.
- Stabilize GDIWidget, trigger on first event only.

Change-Id: I64119a2e7113e4a9f0156d00c72ce0935d03bb81
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
tests/auto/widgets/kernel/qwidget/tst_qwidget_mac_helpers.mm