#include <QFoo>

Thiago Macieira thiago at kde.org
Thu Jul 27 22:37:10 BST 2006


Allen Winter wrote:
>Any reason why I shouldn't replace #include <qfoo.h> with #include
> <QFoo> in kdelibs? (and everywhere in KDE4 source)?

Just remember that headers must include the QtModule/ prefix, whatever 
form you choose for the second part (e.g., QtCore/qcorevent.h or 
QtCore/QEvent, not QEvent or qcorevent.h).

The obvious drawback of doing this change is that the preprocessor has to 
open one more file and parse it.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060727/ea7cb33b/attachment.sig>


More information about the kde-core-devel mailing list