[Development] Use QT_DEPRECATED_SINCE macro for specific enum values

Thiago Macieira thiago.macieira at intel.com
Wed Aug 12 16:37:34 CEST 2015


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)
>     Three,
> #endif
>     Four

This obviously needs to be:
	Four = 4

> };

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list