summaryrefslogtreecommitdiffstats
path: root/src/tools/qglobal.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-05-23 13:45:53 +0900
committerSlávek Banko <slavek.banko@axis.cz>2021-12-30 16:57:47 +0100
commit1793a1019bacf3be374b3f6eb787c08e744781ed (patch)
treea62582122fd0afe60957b82cf28d97f101431d1d /src/tools/qglobal.h
parent5a01017c2221269bba6d8ce422d7a05d5693888d (diff)
downloadqt3-1793a1019bacf3be374b3f6eb787c08e744781ed.tar.gz
qt3-1793a1019bacf3be374b3f6eb787c08e744781ed.zip
Added utility functions qDebug/qWarning/qFatal based on QString parameter.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 2c29133f7ee2a270da8d8504345390a1d60e80fa)
Diffstat (limited to 'src/tools/qglobal.h')
-rw-r--r--src/tools/qglobal.h11
1 files changed, 7 insertions, 4 deletions
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