[Development] Question about QtSerialPort addons macro like QT_BEGIN(END...)_NAMESPACE_XYZ...

2012-02-17 Thread Denis Shienkov
Hi, all. I am developing a new addon for Qt5 in Gerrit /playground/QtSerialPort and I have a problem with the macros QT_BEGIN_NAMESPACE_SERIALPORT, QT_END_NAMESPACE_SERIALPORT and etc. With this code in the global file serialport-global.h .. #ifndef SERIALPORT_GLOBAL_H #define

Re: [Development] Question about QtSerialPort addons macro like QT_BEGIN(END...)_NAMESPACE_XYZ...

2012-02-17 Thread Denis Shienkov
I answer to myself. If add in serialport_global.h also these lines: .. #if defined QT_BEGIN_MOC_NAMESPACE # undef QT_BEGIN_MOC_NAMESPACE #endif #if defined QT_END_MOC_NAMESPACE # undef QT_END_MOC_NAMESPACE #endif #define QT_BEGIN_MOC_NAMESPACE QT_BEGIN_NAMESPACE_SERIALPORT #define