API QT < 5.3 compatibility

.. map wDebug() to qWarning() instead of using
   QMessageLogger for backward compatibility
This commit is contained in:
Mark Liversedge
2015-09-18 08:49:39 +01:00
parent 791b5115f4
commit b23f39ebc8

View File

@@ -25,7 +25,7 @@ DECLSPEC const char* getQtWebAppLibVersion();
/** wDebug() uses QT QMessageLogger but as info to log
rather than interfering with normal qDebug usage **/
#define wDebug QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).warning
#define wDebug qWarning
#endif // HTTPGLOBAL_H