summaryrefslogtreecommitdiffstats
path: root/src/trace.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-09-06 02:04:50 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-09-06 02:04:50 +0200
commit1a36f79cf4aedaad3ce55e1ed79bde71d19141b3 (patch)
treef643d506ae1f945ac0b4b0b4b8dea6662d08b57e /src/trace.cpp
parent9cbe9f0f8b67fc7d0f158ee4d74956c932c76b8b (diff)
downloadtdedocker-1a36f79cf4aedaad3ce55e1ed79bde71d19141b3.tar.gz
tdedocker-1a36f79cf4aedaad3ce55e1ed79bde71d19141b3.zip
Initial TQt conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
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();
}
}