From: Stephen Kelly Date: Mon, 13 Aug 2012 09:01:57 +0000 (+0200) Subject: Deprecate Qt::WFlags. X-Git-Tag: v5.0.0-beta1~289 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=399b591b5cd05d8ac4700c45b0531aa0da7d69a2;p=profile%2Fivi%2Fqtbase.git Deprecate Qt::WFlags. It seems to date from the Qt 1 days, and such abbreviations are not current Qt style. Change-Id: Iea7259bd7ba78b2c0863e3f6675e10826712ffd9 Reviewed-by: Andy Shaw Reviewed-by: Lars Knoll --- diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index 50f43e3..a302c8c 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -1410,7 +1410,9 @@ public: Q_DECLARE_FLAGS(MatchFlags, MatchFlag) typedef void * HANDLE; +#if QT_DEPRECATED_SINCE(5, 0) typedef WindowFlags WFlags; +#endif enum WindowModality { NonModal, diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc index 41a9af2..338edc5 100644 --- a/src/corelib/global/qnamespace.qdoc +++ b/src/corelib/global/qnamespace.qdoc @@ -1863,6 +1863,8 @@ /*! \typedef Qt::WFlags + \obsolete + This typedef is obsolete. Use Qt::WindowFlags instead. Synonym for Qt::WindowFlags. */