From 0d2d8f944bee6a13bdb50be2468130e937e0c010 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 14 Sep 2009 18:51:07 +0200 Subject: Make qtest_gui.h define QT_GUI_LIB to enable GUI tests. This also creates a new header called QtTest/QtTestGui. This header is not supported. You should #include . But if you're using a build system that is not qmake, QT_GUI_LIB isn't defined, so it's possibly easier to #include this new header. Reviewed-by: Trust Me --- src/testlib/qtest_gui.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/testlib/qtest_gui.h b/src/testlib/qtest_gui.h index 92ca055..13063a8 100644 --- a/src/testlib/qtest_gui.h +++ b/src/testlib/qtest_gui.h @@ -42,6 +42,14 @@ #ifndef QTEST_GUI_H #define QTEST_GUI_H +// enable GUI features +#ifndef QT_GUI_LIB +#define QT_GUI_LIB +#endif +#if 0 +#pragma qt_class(QtTestGui) +#endif + #include #include #include -- cgit v0.12