Page 1 of 1

Improperly Generated Q_ENUMS

PostPosted: Thu Nov 10, 2016 9:34 pm
by Kasuax
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)

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();

};

Re: Improperly Generated Q_ENUMS

PostPosted: Mon Nov 14, 2016 6:36 pm
by qxorm
Thx for reporting this issue !
It will be fixed in the next version.

Re: Improperly Generated Q_ENUMS

PostPosted: Mon Dec 12, 2016 9:26 am
by qxorm
Fixed in QxEntityEditor 1.2.1 : for changes log and download, please go to QxOrm download web page : https://www.qxorm.com/qxorm_en/download.html.