ogoffart at kde.org
Thu Jun 11 12:34:32 BST 2009
On Wednesday 10 June 2009 14:37:53 Christoph Feck wrote:
> 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
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