Deprecate Qt::WFlags.
authorStephen Kelly <stephen.kelly@kdab.com>
Mon, 13 Aug 2012 09:01:57 +0000 (11:01 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 14 Aug 2012 08:10:44 +0000 (10:10 +0200)
It seems to date from the Qt 1 days, and such abbreviations
are not current Qt style.

Change-Id: Iea7259bd7ba78b2c0863e3f6675e10826712ffd9
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/global/qnamespace.h
src/corelib/global/qnamespace.qdoc

index 50f43e3..a302c8c 100644 (file)
@@ -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,
index 41a9af2..338edc5 100644 (file)
 
 /*!
     \typedef Qt::WFlags
+    \obsolete
+    This typedef is obsolete. Use Qt::WindowFlags instead.
 
     Synonym for Qt::WindowFlags.
 */