Warn if we use deprecated methods from Qt modules
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 19 Oct 2011 21:51:17 +0000 (23:51 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 25 Apr 2012 10:43:25 +0000 (12:43 +0200)
This change will cause any use of methods and classes declared with
Q_DECL_DEPRECATED to produce a warning in the compilation
output. Those warnings need to be silenced before the Qt 5.0 release,
preferably before the beta.

Change-Id: I28ce133867cc5918e177c57f6e5f7ab9421989ad
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
mkspecs/features/qt_module_config.prf

index ac0b635..217572e 100644 (file)
@@ -143,6 +143,7 @@ contains(QT_PRODUCT, OpenSource.*):DEFINES *= QT_OPENSOURCE
 DEFINES *= QT_NO_CAST_TO_ASCII QT_ASCII_CAST_WARNINGS
 DEFINES *= QT_MOC_COMPAT #we don't need warnings from calling moc code in our generated code
 DEFINES *= QT_USE_QSTRINGBUILDER
+DEFINES *= QT_DEPRECATED_WARNINGS
 
 TARGET = $$qtLibraryTarget($$TARGET$$QT_LIBINFIX) #do this towards the end