Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
4.0.1
-
None
Description
Moc do macro substitution in preprocessor command (#if) but not for source code.
Original report:
moc does not notice the namespace and generates meta-object code that does not compile for the class declaration below:
#define NAMESPACE_BEGIN namespace test
{ #define NAMESPACE_END }NAMESPACE_BEGIN
class AnalogClock : public QWidget
{
Q_OBJECT
public:
AnalogClock(QWidget *parent = 0);
protected:
void paintEvent(QPaintEvent *event);
};
NAMESPACE_END
Attachments
Issue Links
- relates to
-
QTBUG-22829 boost 1.48, Qt and [Parse error at "BOOST_JOIN"] error
- Closed