Qt 4.6
Olivier Goffart
ogoffart at kde.org
Thu Jun 11 12:34:32 BST 2009
On Wednesday 10 June 2009 14:37:53 Christoph Feck wrote:
> Hi,
>
> a recent change in Qt 4.6 adds #include <QMetaType> to all generated .moc
> files in order to handle different floating point datatypes.
>
> Many KDE files add #include "file.moc" at the end of the .cpp file. The
> problem is with .cpp files that include X11 headers, where Bool is defined
> as a preprocessor macro.
>
> Compiling KDE with current Qt 4.6 results in the error
>
> #error qmetatype.h must be included before any header file that defines
> Bool
Hi,
We fixed Qt 4.6's moc.
The generated files will only include qmetatype.h if they need to. (eg. if the
class has a qreal property)
That should fix the errors.
(commit 713e52d9 - may take 12h before being in the public repository)
Thanks for reporting.
More information about the kde-core-devel
mailing list