Remove deprecation from enumerations in QtGui.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Wed, 22 Aug 2012 06:31:57 +0000 (08:31 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 22 Aug 2012 20:05:55 +0000 (22:05 +0200)
Referencing them in a (deprecated) function declaration causes
a deprecation warning to be emitted each time the header is
included, which causes a massive amount of warnings for qevent.h.

It should be sufficient to deprecate them in the documentation
and to deprecate function using them.

Change-Id: I531b7c893e73428703cfb302615bff382abce54f
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/gui/kernel/qevent.h
src/gui/util/qdesktopservices.h

index 7fbd2ae..bb3bd8f 100644 (file)
@@ -779,7 +779,7 @@ public:
     };
 
 #if QT_DEPRECATED_SINCE(5, 0)
-    enum QT_DEPRECATED DeviceType {
+    enum DeviceType {
         TouchScreen,
         TouchPad
     };
index a412ba5..a993d33 100644 (file)
@@ -65,7 +65,7 @@ public:
 
 #if QT_DEPRECATED_SINCE(5, 0)
     //Must match QStandardPaths::StandardLocation
-    enum QT_DEPRECATED StandardLocation {
+    enum StandardLocation {
         DesktopLocation,
         DocumentsLocation,
         FontsLocation,