Fixing linkage of the coreanimation examples on Windows.
Change-Id: Ic34cab329577b2ba430ca8a510b356c424d574af
Reviewed-on: http://codereview.qt.nokia.com/3605
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
QT.widgets.plugins = $$QT_MODULE_PLUGIN_BASE
QT.widgets.imports = $$QT_MODULE_IMPORT_BASE
QT.widgets.depends = core network gui
QT.widgets.plugins = $$QT_MODULE_PLUGIN_BASE
QT.widgets.imports = $$QT_MODULE_IMPORT_BASE
QT.widgets.depends = core network gui
-QT.widgets.DEFINES = QT_GUI_LIB
+QT.widgets.DEFINES = QT_WIDGETS_LIB
#include <QtTest/qtestsystem.h>
#include <QtTest/qtestsystem.h>
+#if defined(QT_WIDGETS_LIB)
#include <QtTest/qtest_gui.h>
#include <QtTest/qtest_gui.h>
return QTest::qExec(&tc, argc, argv); \
}
return QTest::qExec(&tc, argc, argv); \
}
+#elif defined(QT_GUI_LIB)
+
+#include <QtTest/qtest_gui.h>
+
+#define QTEST_MAIN(TestObject) \
+int main(int argc, char *argv[]) \
+{ \
+ QGuiApplication app(argc, argv); \
+ TestObject tc; \
+ return QTest::qExec(&tc, argc, argv); \
+}
+
#else
#define QTEST_MAIN(TestObject) \
#else
#define QTEST_MAIN(TestObject) \