Qt component defines

Thiago Macieira thiago at kde.org
Fri Aug 28 21:14:52 CEST 2009


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.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Qt Developer Days 2009 | Registration Now Open!
Munich, Germany: Oct 12 - 14     San Francisco, California: Nov 2 - 4
      http://qt.nokia.com/qtdevdays2009
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20090828/584154d1/attachment.sig 


More information about the Kde-buildsystem mailing list