From 1a36f79cf4aedaad3ce55e1ed79bde71d19141b3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= <slavek.banko@axis.cz>
Date: Thu, 6 Sep 2018 02:04:50 +0200
Subject: Initial TQt conversion
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
---
 src/trace.cpp | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

(limited to 'src/trace.cpp')

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();
   }
 }
-- 
cgit v1.2.1