On Friday 28 August 2009, Thiago Macieira wrote: > Em Sexta-feira 28. Agosto 2009, às 19.17.33, você escreveu: > > On Friday 28 August 2009, Thiago Macieira wrote: > > > Em Sexta-feira 28. Agosto 2009, às 00.58.37, David Faure escreveu: > > > > > There's no need to change anything. > > > > > > > > Well, IMHO it's a bug in Qt that QtTest uses QT_GUI_LIB. > > > > > > I don't see how else to do this, if not with a macro. > > > > > > #include <QtTest/QtTest> includes all headers. So it has to decide > > > whether to enable or disable GUI features, somehow. It has to be a > > > #define. > > > > Simply by having a macro for gui tests and a macro for core tests. > > That's not really hard ;) > > For the QTEST_MAIN macro, that would work. But there are also some other > functions available in other headrs, like mouse events, etc. that need to > be enabled or disabled.
I don't understand the problem. It's all inline, so there's no linking problem, as long as you don't use mouse stuff in a core-only test, but that would be stupidity, nothing we can do anything about. -- David Faure, [email protected], sponsored by Nokia to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org). _______________________________________________ Kde-buildsystem mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-buildsystem
