[Development] Conditional Deprecation Warnings

Keith Gardner kreios4004 at gmail.com
Sun Oct 13 01:33:00 CEST 2013


> > I had an idea about making conditional deprecation warnings for functions
> > in Qt based on the destination platform.
>
> That might be useful, actually.
>
> But not for this case. Trying to call nativeArguments() on a non-Windows
> platform already signals the problem with a full error. It's impossible to
> ignore this.


Here are my changes:

Added Q_DECL_DEPRECATED_X(text)
https://codereview.qt-project.org/#change,68028

Added Q_DECL_DEPRECATED_CONDITIONAL(conditional, text)
https://codereview.qt-project.org/#change,68040

I am struggling with expanding the conditional properly.  Currently, I
cannot get it to use defined() in the conditional.  Any
suggestions/corrections would be greatly appreciated.

Keith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131012/a92e9b55/attachment.html>


More information about the Development mailing list