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>
bb10
Friedemann Kleint 2012-07-26 14:04:09 +02:00 committed by Qt by Nokia
parent 8cf7cf0cb9
commit 2f587ee689
2 changed files with 335 additions and 269 deletions

File diff suppressed because it is too large Load Diff

View File

@ -44,7 +44,7 @@
#include "tst_qwidget_mac_helpers.h"
#include <QApplication>
#include <QPlatformNativeInterface>
#include <qpa/qplatformnativeinterface.h>
#include <private/qcore_mac_p.h>
#include <Cocoa/Cocoa.h>