On Mon, Jun 18, 2007 at 12:06:50PM +0200, Leuven, E. wrote: > --- src/frontends/qt4/IconPalette.h (revision 18812) > +++ src/frontends/qt4/IconPalette.h (working copy) > @@ -20,7 +20,7 @@ > // FIXME: this can go when we move to Qt 4.3 > #define QT_VERSION_CHECK(major, minor, patch) > ((major<<16)|(minor<<8)|(patch)) > > -#if QT_VERSION >= QT_VERSION_CHECK(4, 2, 0) > +#if QT_VERSION >= QT_VERSION_CHECK(4, 2, 0) && !Q_WS_MACX > #include <QWidgetAction> > #endif
Edwin, moc doesn't perform like the preprocessor. It doesn't parse included files, such that QT_VERSION is undefined, and doesn't understand macros. In the check above, moc chooses randomly one branch or another. See what I wrote in the thread "tear-off math panel". -- Enrico