Thanks for the reply.
I found a solution, by modifing the header that contained the enums with something similar to this:
#ifdef QT
class MyQtAppEnums
: public QObject{
Q_OBJECT
Q_ENUMS(myenum)
public:
MyQtAppEnums (void) {};
#endif
myenum {
the = (1<<8),
number,
is,
fortytwo = 42
};
#ifdef QT
}
#endif
#ifdef QT
class MyQtAppEnums : public QObject
{
Q_OBJECT
Q_ENUMS(myenum)
public:
MyQtAppEnums (void) {};
#endif
myenum {
the = (1<<8),
number,
is,
fortytwo = 42
};
#ifdef QT
}
#endif
To copy to clipboard, switch view to plain text mode
The above might not be 100%, but shows at least how a c style header can be kept intact for a c-compiler and make the enums a bit more qt-friendly when using moc + a c++ compiler.
thanks,
leif
Bookmarks