[Development] How to deprecate enum values (was: "Deprecated/Obsolete API that survived the transition from Qt 5 to Qt 6")

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Thu Apr 8 12:11:36 CEST 2021


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 | giuseppe.dangelo at kdab.com | 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20210408/68b7fc47/attachment.bin>


More information about the Development mailing list