Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.1.1, 5.2.0 Beta1
-
None
-
36d524e6a3b64a8c35805c1b868d6d67ccae765c
Description
moc does not see define Q_OS_LINUX.
for example, if header contain:
public slots:
#ifdef Q_OS_LINUX
void sameSlot();
#endif
in generated moc_xxx.cpp file is not present definition for slot sameSlot().
in Qt 4.8.5 , define Q_WS_X11 normally recognized by moc
Attachments
Issue Links
- is duplicated by
-
QTBUG-42070 moc does not take slots that are defined in Q_OS_... guards into account.
-
- Closed
-
-
QTBUG-53489 Q_OS_ANDROID not defined for MOC
-
- Closed
-
-
QTBUG-38370 Defines (like Q_OS_IOS) are not taken account when moccing a header
-
- Closed
-
-
QTBUG-55771 _WIN32 is not defined for header files
-
- Closed
-
- relates to
-
QTBUG-28870 qmake does not pass the default include dirs to moc
-
- Closed
-