Re: [Development] Use QT_DEPRECATED_SINCE macro for specific enum values

2015-08-13 Thread Smith Martin
Sent: Wednesday, August 12, 2015 11:06 PM To: development@qt-project.org Subject: Re: [Development] Use QT_DEPRECATED_SINCE macro for specific enum values On Wednesday 12 August 2015 22:12:43 Denis Shienkov wrote: > So, my question is: how to deprecate the specific enum value with a > right

Re: [Development] Use QT_DEPRECATED_SINCE macro for specific enum values

2015-08-12 Thread Denis Shienkov
Ok, many thanks, Thiago. It was that I want to know. 13.08.2015 0:06, Thiago Macieira пишет: > On Wednesday 12 August 2015 22:12:43 Denis Shienkov wrote: >> So, my question is: how to deprecate the specific enum value with a >> right way for all compilers/platforms? > Don't do it. There's no porta

Re: [Development] Use QT_DEPRECATED_SINCE macro for specific enum values

2015-08-12 Thread Thiago Macieira
On Wednesday 12 August 2015 22:12:43 Denis Shienkov wrote: > So, my question is: how to deprecate the specific enum value with a > right way for all compilers/platforms? Don't do it. There's no portable way yet. Maybe in a year or two we can introduce a macro for it. -- Thiago Macieira - thiago

Re: [Development] Use QT_DEPRECATED_SINCE macro for specific enum values

2015-08-12 Thread Denis Shienkov
> If you remove C due to the macro, then D is now equal to 3 from incrementing its value based off of B's value instead of C. Yes, I know it... But I talk not about it.. I talk about using QT_DEPRECATED_SINCE in common case, according to enum values. What if I need to deprecate the specific v

Re: [Development] Use QT_DEPRECATED_SINCE macro for specific enum values

2015-08-12 Thread André Somers
> Op 12 aug. 2015 om 19:52 heeft Keith Gardner het > volgende geschreven: > > > >> On Wed, Aug 12, 2015 at 11:54 AM Denis Shienkov >> wrote: >> > skips three making Four == 3. >> >> yes, and what? :) >> >> >> > This obviously needs to be: >> > Four = 4 >> >> Ok, seems it was a bad exam

Re: [Development] Use QT_DEPRECATED_SINCE macro for specific enum values

2015-08-12 Thread Keith Gardner
On Wed, Aug 12, 2015 at 11:54 AM Denis Shienkov wrote: > > skips three making Four == 3. > > yes, and what? :) > > > > This obviously needs to be: > > Four = 4 > > Ok, seems it was a bad example with One-Four.. Let's consider another > abstract example: > > enum Foo { > A, > B, > #if QT_

Re: [Development] Use QT_DEPRECATED_SINCE macro for specific enum values

2015-08-12 Thread Denis Shienkov
@qt-project.org> on behalf of Denis Shienkov < > denis.shien...@gmail.com> > *Sent:* Wednesday, August 12, 2015 5:45 PM > *Cc:* development@qt-project.org > *Subject:* Re: [Development] Use QT_DEPRECATED_SINCE macro for specific > enum values > > > This obviously needs to

Re: [Development] Use QT_DEPRECATED_SINCE macro for specific enum values

2015-08-12 Thread Pocheptsov Timur
evelopment] Use QT_DEPRECATED_SINCE macro for specific enum values > This obviously needs to be: >Four = 4 Sorry? 2015-08-12 17:37 GMT+03:00 Thiago Macieira mailto:thiago.macie...@intel.com>>: On Wednesday 12 August 2015 15:36:22 Denis Shienkov wrote: > Hi All.

Re: [Development] Use QT_DEPRECATED_SINCE macro for specific enum values

2015-08-12 Thread Pocheptsov Timur
opment@qt-project.org Subject: Re: [Development] Use QT_DEPRECATED_SINCE macro for specific enum values > This obviously needs to be: >Four = 4 Sorry? 2015-08-12 17:37 GMT+03:00 Thiago Macieira mailto:thiago.macie...@intel.com>>: On Wednesday 12 August 2015 15:36:22 Denis Shienkov wr

Re: [Development] Use QT_DEPRECATED_SINCE macro for specific enum values

2015-08-12 Thread Denis Shienkov
> This obviously needs to be: >Four = 4 Sorry? 2015-08-12 17:37 GMT+03:00 Thiago Macieira : > On Wednesday 12 August 2015 15:36:22 Denis Shienkov wrote: > > Hi All. > > > > Is it possible to use QT_DEPRECATED_SINCE macro for the specific enum > > values? And, is any restrictions related

Re: [Development] Use QT_DEPRECATED_SINCE macro for specific enum values

2015-08-12 Thread Thiago Macieira
On Wednesday 12 August 2015 15:36:22 Denis Shienkov wrote: > Hi All. > > Is it possible to use QT_DEPRECATED_SINCE macro for the specific enum > values? And, is any restrictions related to the different compilers? > > enum Numbers { > One, > Two, > #if QT_DEPRECATED_SINCE(5, 2) > Thre

Re: [Development] Use QT_DEPRECATED_SINCE macro for specific enum values

2015-08-12 Thread Richard Moore
See http://code.woboq.org/qt5/qtbase/src/network/ssl/qssl.h.html#75 Note that qdoc doesn't like it much. Rich. On 12 August 2015 at 13:36, Denis Shienkov wrote: > Hi All. > > Is it possible to use QT_DEPRECATED_SINCE macro for the specific enum > values? And, is any restrictions related to the

[Development] Use QT_DEPRECATED_SINCE macro for specific enum values

2015-08-12 Thread Denis Shienkov
Hi All. Is it possible to use QT_DEPRECATED_SINCE macro for the specific enum values? And, is any restrictions related to the different compilers? enum Numbers { One, Two, #if QT_DEPRECATED_SINCE(5, 2) Three, #endif Four }; BR, Denis __