> Is there a way to generate compile-time warnings for_enum values_?

Yes, Q_DECL_ENUMERATOR_DEPRECATED and similar.

The latest version of Q_DECL_DEPRECATED and friends should also work. I recall 
it got changed to use [[deprecated]] C++ attribute, which should support enum 
value case.

--
Best Regards,
Andrei
________________________________
From: Development <[email protected]> on behalf of Giuseppe 
D'Angelo via Development <[email protected]>
Sent: Thursday, April 8, 2021 12:11 PM
To: [email protected] <[email protected]>
Subject: Re: [Development] How to deprecate enum values (was: 
"Deprecated/Obsolete API that survived the transition from Qt 5 to Qt 6")

Il 08/04/21 12:00, Sze Howe Koh ha scritto:
> Is there a way to generate compile-time warnings for_enum values_?

Yes, Q_DECL_ENUMERATOR_DEPRECATED and similar.

Thanks,
--
Giuseppe D'Angelo | [email protected] | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

_______________________________________________
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development

Reply via email to