Dear all,

I would like to check my project that it is not using functions shown in the Qt documentation as deprecated and no longer recommended for future development. I tried using QT_DISABLE_DEPRECATED_BEFORE, but it does not work, as the attached project still compiles. How can I proceed?

Qt Code:
  1. ######################################################################
  2. # Automatically generated by qmake (3.0) Sun Nov 23 20:09:27 2014
  3. ######################################################################
  4.  
  5. TEMPLATE = app
  6. TARGET = t
  7. INCLUDEPATH += .
  8.  
  9. # Input
  10. SOURCES += main.cpp
  11.  
  12. QT += xml
  13.  
  14. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050302
  15.  
  16. DEFINES += QT_DISABLE_DEPRECATED_BEFORE="0x050302"
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. //#define QT_DISABLE_DEPRECATED_BEFORE 0x050302
  2.  
  3. #include <QObject>
  4.  
  5. #include <QtGlobal>
  6.  
  7. #include <QtXml>
  8.  
  9.  
  10. #include <iostream>
  11. using namespace std;
  12.  
  13. int main()
  14. {
  15. //cout<<QABS(-5)<<endl;
  16.  
  17. cout<<qPrintable(QObject::trUtf8("text"))<<endl;
  18.  
  19. return 0;
  20. }
To copy to clipboard, switch view to plain text mode