summaryrefslogtreecommitdiffstats
path: root/src/tools/qglobal.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-09-05 11:02:47 +0900
committerSlávek Banko <slavek.banko@axis.cz>2021-12-30 16:56:37 +0100
commit0e9efe6bf138bde6c512d65524c6a03df5efd3eb (patch)
treedbd038617e79a7da4e233aadfb721622966d69cb /src/tools/qglobal.cpp
parent1b74fac43d050443edfda2d2f9ef257855355ae0 (diff)
downloadqt3-0e9efe6bf138bde6c512d65524c6a03df5efd3eb.tar.gz
qt3-0e9efe6bf138bde6c512d65524c6a03df5efd3eb.zip
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 <michele.calgaro@yahoo.it> (cherry picked from commit 300c4d2bd2c289d32565a3c2c84b36565241b71e)
Diffstat (limited to 'src/tools/qglobal.cpp')
-rw-r--r--src/tools/qglobal.cpp15
1 files changed, 15 insertions, 0 deletions
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