summaryrefslogtreecommitdiffstats
path: root/src/trace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/trace.cpp')
-rw-r--r--src/trace.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/trace.cpp b/src/trace.cpp
index c41247e..effcd64 100644
--- a/src/trace.cpp
+++ b/src/trace.cpp
@@ -1,12 +1,12 @@
#ifdef ENABLE_TRACING
-#include <qapplication.h>
-#include <qtextedit.h>
-#include <qfile.h>
+#include <tqapplication.h>
+#include <tqtextedit.h>
+#include <tqfile.h>
#include <stdio.h>
-static QTextEdit *tracer = NULL;
+static TQTextEdit *tracer = NULL;
-void TRACER(QtMsgType, const char *msg)
+void TRACER(TQtMsgType, const char *msg)
{
tracer->append(&msg[*msg == '~' ? 1 : 0]);
if (msg[0] != '~')
@@ -19,8 +19,8 @@ void TRACER(QtMsgType, const char *msg)
void INIT_TRACE()
{
if (tracer) return; // de javu
- tracer = new QTextEdit();
- tracer->setTextFormat(Qt::LogText);
+ tracer = new TQTextEdit();
+ tracer->setTextFormat(TQt::LogText);
tracer->setMaxLogLines(10000);
tracer->resize(750, 300);
qInstallMsgHandler(TRACER);
@@ -33,10 +33,10 @@ void SHOW_TRACE()
void DUMP_TRACE(const char *f)
{
- QFile file(f); // Write the text to a file
+ TQFile file(f); // Write the text to a file
if (file.open(IO_WriteOnly))
{
- QTextStream stream(&file);
+ TQTextStream stream(&file);
stream << tracer->text();
}
}