From c133a629f0f947ea6cddc1f938f8cbb9c42d87e5 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 TQCString argument. This fixes FTBFS of examples caused by previous ambiguous call and solves bug 3021. Signed-off-by: Michele Calgaro (cherry picked from commit 80dc1e5317f9bf799df2493381484b1b65e77b5f) --- 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 5c9663df5..9d7d89378 100644 --- a/src/tools/qglobal.cpp +++ b/src/tools/qglobal.cpp @@ -582,6 +582,11 @@ void warning( const char *msg, ... ) handle_buffer(buf, TQtDebugMsg); } +void tqDebug( const TQCString &s ) +{ + tqDebug(s.data()); +} + void tqWarning( const TQString &msg ) { char buf[QT_BUFFER_LENGTH]; @@ -612,6 +617,11 @@ void tqWarning( const char *msg, ... ) handle_buffer(buf, TQtWarningMsg); } +void tqWarning( const TQCString &s ) +{ + tqWarning(s.data()); +} + void tqFatal( const TQString &msg ) { char buf[QT_BUFFER_LENGTH]; @@ -677,6 +687,11 @@ void fatal( const char *msg, ... ) handle_buffer(buf, TQtFatalMsg); } +void tqFatal( const TQCString &s ) +{ + tqWarning(s.data()); +} + /*! \relates TQApplication -- cgit v1.2.3