Improperly Generated Q_ENUMS

The following doesn't work for Qt4.8.6
For the moc compiler to correctly register the enum_SystemType within the SystemType QObject we need to drop the namespace prefix.
Q_ENUMS(QXC::SystemType::enum_SystemType)
Q_ENUMS(enum_SystemType)
For the moc compiler to correctly register the enum_SystemType within the SystemType QObject we need to drop the namespace prefix.
Q_ENUMS(QXC::SystemType::enum_SystemType)
Q_ENUMS(enum_SystemType)
- Code: Select all
/*!
* \brief System Types
*/
class QXC_EXPORT SystemType : public QObject
{
Q_OBJECT
Q_ENUMS(QXC::SystemType::enum_SystemType)
public:
enum enum_SystemType
{
Piranha3 = 1,
Piranha4 = 2,
Piranha5 = 4
};
private:
SystemType();
virtual ~SystemType();
};