Improperly Generated Q_ENUMS

Open discussion on QxEntityEditor

Improperly Generated Q_ENUMS

Postby Kasuax » Thu Nov 10, 2016 9:34 pm

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

};
Kasuax
 
Posts: 62
Joined: Mon Jun 20, 2016 6:42 pm

Re: Improperly Generated Q_ENUMS

Postby qxorm » Mon Nov 14, 2016 6:36 pm

Thx for reporting this issue !
It will be fixed in the next version.
qxorm
Site Admin
 
Posts: 481
Joined: Mon Apr 12, 2010 7:45 am

Re: Improperly Generated Q_ENUMS

Postby qxorm » Mon Dec 12, 2016 9:26 am

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.
qxorm
Site Admin
 
Posts: 481
Joined: Mon Apr 12, 2010 7:45 am


Return to QxEntityEditor - Open discussion

Who is online

Users browsing this forum: No registered users and 4 guests

cron