From 0e9efe6bf138bde6c512d65524c6a03df5efd3eb Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 5 Sep 2019 11:02:47 +0900 Subject: Added tqDebug/tqWarning/tqFatal functions that takes a QCString argument. This fixes FTBFS of examples caused by previous ambiguous call and solves bug 3021. Signed-off-by: Michele Calgaro (cherry picked from commit 300c4d2bd2c289d32565a3c2c84b36565241b71e) --- src/tools/qglobal.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/tools/qglobal.cpp') diff --git a/src/tools/qglobal.cpp b/src/tools/qglobal.cpp index 6fbbb94..d43e8d7 100644 --- a/src/tools/qglobal.cpp +++ b/src/tools/qglobal.cpp @@ -582,6 +582,11 @@ void warning( const char *msg, ... ) handle_buffer(buf, QtDebugMsg); } +void qDebug( const QCString &s ) +{ + qDebug(s.data()); +} + void qWarning( const QString &msg ) { char buf[QT_BUFFER_LENGTH]; @@ -612,6 +617,11 @@ void qWarning( const char *msg, ... ) handle_buffer(buf, QtWarningMsg); } +void qWarning( const QCString &s ) +{ + qWarning(s.data()); +} + void qFatal( const QString &msg ) { char buf[QT_BUFFER_LENGTH]; @@ -677,6 +687,11 @@ void fatal( const char *msg, ... ) handle_buffer(buf, QtFatalMsg); } +void qFatal( const QCString &s ) +{ + qWarning(s.data()); +} + /*! \relates QApplication -- cgit v1.2.3