qmltest: Added the possibility to use QApplication
authorLiang Qi <liang.qi@digia.com>
Thu, 27 Dec 2012 08:48:07 +0000 (09:48 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 31 Dec 2012 20:13:04 +0000 (21:13 +0100)
commit473ec1734751cdea889be9690bde0af6371ec111
treea459d28a1d969d447db769abff39461fd2f2ff81
parentdaa33ba7b99b3f4ee3ac9a738c85bca36ab0fdd7
qmltest: Added the possibility to use QApplication

Current QML test cases in QtDesktopComponents still need to use
QApplication.

Added QT_QMLTEST_WITH_WIDGETS define when QtWidgets is available.
Also proveded a command line switch "-widgets" for it.

Change-Id: Ib6c7313538cb8875144636b6f8bd264b0f13aa8d
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
src/qmltest/qmltest.pro
src/qmltest/quicktest.cpp