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

Andrei Golubev andrei.golubev at qt.io
Thu Apr 8 14:50:58 CEST 2021


> 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 <development-bounces at qt-project.org> on behalf of Giuseppe D'Angelo via Development <development at qt-project.org>
Sent: Thursday, April 8, 2021 12:11 PM
To: development at qt-project.org <development at qt-project.org>
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 | 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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20210408/8744a904/attachment-0001.html>


More information about the Development mailing list