From 1793a1019bacf3be374b3f6eb787c08e744781ed Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 23 May 2019 13:45:53 +0900 Subject: Added utility functions qDebug/qWarning/qFatal based on QString parameter. Signed-off-by: Michele Calgaro (cherry picked from commit 2c29133f7ee2a270da8d8504345390a1d60e80fa) --- src/tools/qglobal.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/tools/qglobal.h') diff --git a/src/tools/qglobal.h b/src/tools/qglobal.h index 64b18ea..3a70971 100644 --- a/src/tools/qglobal.h +++ b/src/tools/qglobal.h @@ -752,7 +752,7 @@ typedef Q_UINT64 Q_ULLONG; // unsigned long long // class QDataStream; - +class QString; // // Feature subsetting @@ -969,19 +969,22 @@ Q_EXPORT int qWinVersion(); #endif -Q_EXPORT void qDebug( const char *, ... ) // print debug message +Q_EXPORT void qDebug( const QString& ); // print debug message +Q_EXPORT void qDebug( const char *, ... ) // print debug message #if defined(Q_CC_GNU) && !defined(__INSURE__) __attribute__ ((format (printf, 1, 2))) #endif ; -Q_EXPORT void qWarning( const char *, ... ) // print warning message +Q_EXPORT void qWarning( const QString& ); // print warning message +Q_EXPORT void qWarning( const char *, ... ) // print warning message #if defined(Q_CC_GNU) && !defined(__INSURE__) __attribute__ ((format (printf, 1, 2))) #endif ; -Q_EXPORT void qFatal( const char *, ... ) // print fatal message and exit +Q_EXPORT void qFatal( const QString& ); // print fatal message and exit +Q_EXPORT void qFatal( const char *, ... ) // print fatal message and exit #if defined(Q_CC_GNU) __attribute__ ((format (printf, 1, 2))) #endif -- cgit v1.2.1