Re: [Interest] Q_ENUMS with foreign enum ?

2014-07-27 Thread Alan Ezust
Yes, it is a frustrating limitation of Q_ENUMS that has been there since the Qt3 days. I had to write my own Enum class as a workaround. ​ ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Q_ENUMS with foreign enum ?

2014-07-15 Thread Martin Koller
On Monday 14 July 2014 21:47:00 Konstantin Tokarev wrote: > > 14.07.2014, 13:39, "Martin Koller" : > > On Monday 14 July 2014 09:11:06 Rutledge Shawn wrote: > >> On 12 Jul 2014, at 10:03 AM, Martin Koller wrote: > >>> Hi, > >>> > >>> is there any possibility to use an enum in the Q_ENUMS macro

Re: [Interest] Q_ENUMS with foreign enum ?

2014-07-14 Thread Konstantin Tokarev
14.07.2014, 13:39, "Martin Koller" : > On Monday 14 July 2014 09:11:06 Rutledge Shawn wrote: >>  On 12 Jul 2014, at 10:03 AM, Martin Koller wrote: >>>  Hi, >>> >>>  is there any possibility to use an enum in the Q_ENUMS macro when the enum >>> is not >>>  defined in a QObject derived class ? >>>

Re: [Interest] Q_ENUMS with foreign enum ?

2014-07-14 Thread Martin Koller
On Monday 14 July 2014 09:11:06 Rutledge Shawn wrote: > > On 12 Jul 2014, at 10:03 AM, Martin Koller wrote: > > > Hi, > > > > is there any possibility to use an enum in the Q_ENUMS macro when the enum > > is not > > defined in a QObject derived class ? > > (Specifically I'm trying to do that wi

Re: [Interest] Q_ENUMS with foreign enum ?

2014-07-14 Thread Nurmi J-P
On 14 Jul 2014, at 11:11, Rutledge Shawn wrote: > > On 12 Jul 2014, at 10:03 AM, Martin Koller wrote: > >> Hi, >> >> is there any possibility to use an enum in the Q_ENUMS macro when the enum >> is not >> defined in a QObject derived class ? >> (Specifically I'm trying to do that with QSslEr

Re: [Interest] Q_ENUMS with foreign enum ?

2014-07-14 Thread Rutledge Shawn
On 12 Jul 2014, at 10:03 AM, Martin Koller wrote: > Hi, > > is there any possibility to use an enum in the Q_ENUMS macro when the enum is > not > defined in a QObject derived class ? > (Specifically I'm trying to do that with QSslError::SslError) The Qt namespace has a lot of enums like that.

[Interest] Q_ENUMS with foreign enum ?

2014-07-12 Thread Martin Koller
Hi, is there any possibility to use an enum in the Q_ENUMS macro when the enum is not defined in a QObject derived class ? (Specifically I'm trying to do that with QSslError::SslError) -- Best regards/Schöne Grüße Martin A: Because it breaks the logical sequence of discussion Q: Why is top pos