summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/qglobal.cpp15
-rw-r--r--src/tools/qglobal.h6
2 files changed, 20 insertions, 1 deletions
diff --git a/src/tools/qglobal.cpp b/src/tools/qglobal.cpp
index 0720890..6d3d7e4 100644
--- a/src/tools/qglobal.cpp
+++ b/src/tools/qglobal.cpp
@@ -528,6 +528,11 @@ void qDebug( 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];
@@ -558,6 +563,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];
@@ -588,6 +598,11 @@ void qFatal( const char *msg, ... )
handle_buffer(buf, QtFatalMsg);
}
+void qFatal( const QCString &s )
+{
+ qWarning(s.data());
+}
+
/*!
\relates QApplication
diff --git a/src/tools/qglobal.h b/src/tools/qglobal.h
index 6046029..a0e75ab 100644
--- a/src/tools/qglobal.h
+++ b/src/tools/qglobal.h
@@ -741,6 +741,7 @@ typedef Q_UINT64 Q_ULLONG; // unsigned long long
// Data stream functions is provided by many classes (defined in qdatastream.h)
//
+class QCString;
class QDataStream;
class QString;
@@ -958,6 +959,7 @@ Q_EXPORT int qWinVersion();
Q_EXPORT void qDebug( const QString& ); // print debug message
+Q_EXPORT void qDebug( const QCString& ); // print debug message
Q_EXPORT void qDebug( const char *, ... ) // print debug message
#if defined(Q_CC_GNU) && !defined(__INSURE__)
__attribute__ ((format (printf, 1, 2)))
@@ -965,13 +967,15 @@ Q_EXPORT void qDebug( const char *, ... ) // print debug message
;
Q_EXPORT void qWarning( const QString& ); // print warning message
+Q_EXPORT void qWarning( const QCString& ); // 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 QString& ); // print fatal message and exit
+Q_EXPORT void qFatal( const QString& ); // print fatal message and exit
+Q_EXPORT void qFatal( const QCString& ); // 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)))