There is a Q_DECL_ENUMERATOR_DEPRECATED to mark enumerators as deprecated. -- Fabian Kosmale Software Engineer
The Qt Company GmbH Erich-Thilo-Str. 10 D-12489 Berlin [email protected] +49 1638686070 http://qt.io Geschäftsführer: Mika Pälsi, Juha Varelius, Jouni Lintunen Sitz der Gesellschaft: Berlin Registergericht: Amtsgericht Charlottenburg, HRB 144331 B -- -- Fabian Kosmale Software Engineer The Qt Company GmbH Erich-Thilo-Str. 10 D-12489 Berlin [email protected] +49 1638686070 http://qt.io Geschäftsführer: Mika Pälsi, Juha Varelius, Jouni Lintunen Sitz der Gesellschaft: Berlin Registergericht: Amtsgericht Charlottenburg, HRB 144331 B -- ________________________________________ Von: Development <[email protected]> im Auftrag von Sze Howe Koh <[email protected]> Gesendet: Donnerstag, 8. April 2021 12:00 An: [email protected] Betreff: [Development] How to deprecate enum values (was: "Deprecated/Obsolete API that survived the transition from Qt 5 to Qt 6") On Thu, 8 Apr 2021 at 04:43, Volker Hilsheimer <[email protected]> wrote: > without compile time warning those methods will still be in use, so we can’t > remove them. Is there a way to generate compile-time warnings for _enum values_? Here are some existing flags that were missed during the Qt 6.0 cull: * Code comments -- QLocale::ImperialSystem is commented as "// Qt 4 compatibility" [1] * QDoc free-form text -- QLocale::Uigur is documented as "Obsolete, please use Uyghur" [2] * QDoc commands -- Qt::Desktop (from Qt::WindowType) is hidden with the "\omitvalue" command [3] (although a QDoc bug made it partially visible still [4]) Regards, Sze-Howe [1] https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/text/qlocale.h#n880 [2] https://doc.qt.io/qt-6/qlocale.html#Language-enum [3] https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/global/qnamespace.qdoc#n2179 [4] https://bugreports.qt.io/browse/QTBUG-92386 _______________________________________________ Development mailing list [email protected] https://lists.qt-project.org/listinfo/development _______________________________________________ Development mailing list [email protected] https://lists.qt-project.org/listinfo/development
