Add header qtest_widgets.h, similar to qtest_gui.h, but for QApplication.
authorDavid Faure <faure@kde.org>
Tue, 15 May 2012 11:04:39 +0000 (13:04 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 16 May 2012 17:37:33 +0000 (19:37 +0200)
commit348c3966a02fd3abd5b172859ae5be04c548cf8a
tree5ddabe36bf8b9fec2c96736980aec9aeafd8a538
parent7701d8dc64afadb2378a53297ecd5132de84d81b
Add header qtest_widgets.h, similar to qtest_gui.h, but for QApplication.

The current alternative is to define QT_WIDGETS_LIB before including
qtest.h, but this is not convenient/intuitive when using other build
systems than qmake. If one forgets the define, crashes happen when
using QApplication-related code.

Use <QTestWidgets> in one of the widgets autotests, for testing.

Change-Id: Id96be4976723aea3e8a28c9d0d594daab25a6d90
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
src/testlib/qtest_widgets.h [new file with mode: 0644]
tests/auto/widgets/effects/qgraphicseffect/tst_qgraphicseffect.cpp