[Interest] qt4.8.0 #ifdef Q_REVISION around Q_PROPERTY - build fails on win mingw

Frank Hemer frank at hemer.org
Mon Dec 19 16:36:55 CET 2011


I wonder what the defines around Q_PROPERTY macros are good for?

@see here: 3rdparty/webkit/WebKit/qt/declarative/qdeclarativewebview_p.h

#ifdef Q_REVISION
    Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE 
setBackgroundColor NOTIFY backgroundColorChanged REVISION 1)
#endif

It seems the moc preprocessor skips these ifdefs and thus the win mingw build 
fails complaining about a missing signal implementation ...

Frank



More information about the Interest mailing list