But it has actually been used to deprecate single enum values. Here is an 
example from QTextFormat:

class Q_GUI_EXPORT QTextFormat
{
    Q_GADGET
public:
    enum FormatType {
        InvalidFormat = -1,
        BlockFormat = 1,
        CharFormat = 2,
        ListFormat = 3,
#if QT_DEPRECATED_SINCE(5, 3)
        TableFormat = 4,
#endif
        FrameFormat = 5,

        UserFormat = 100
    };
 
.cpp
/*!
    \enum QTextFormat::FormatType

    This enum describes the text item a QTextFormat object is formatting.

    \value InvalidFormat An invalid format as created by the default
                         constructor
    \value BlockFormat The object formats a text block
    \value CharFormat The object formats a single character
    \value ListFormat The object formats a list
    \omitvalue TableFormat Unused Value, a table's FormatType is FrameFormat.
    \value FrameFormat The object formats a frame

    \value UserFormat

    \sa QTextCharFormat, QTextBlockFormat, QTextListFormat,
    QTextTableFormat, type()
*/

martin
________________________________________
From: development-bounces+martin.smith=theqtcompany....@qt-project.org 
<development-bounces+martin.smith=theqtcompany....@qt-project.org> on behalf of 
Thiago Macieira <thiago.macie...@intel.com>
Sent: Wednesday, August 12, 2015 11:06 PM
To: development@qt-project.org
Subject: Re: [Development] Use QT_DEPRECATED_SINCE macro for specific enum      
values

On Wednesday 12 August 2015 22:12:43 Denis Shienkov wrote:
> So, my question is: how to deprecate the specific enum value with a
> right way for all compilers/platforms?

Don't do it. There's no portable way yet. Maybe in a year or two we can
introduce a macro for it.
--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to