From 5514eaadfac721d2383f589cbb50329da1efd7e7 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 27 Sep 2018 17:59:14 +0900 Subject: [PATCH] qt -> tqt conversion: QT_NO_ASCII_CAST -> TQT_NO_ASCII_CAST QT_NO_STL -> TQT_NO_STL QT_NO_COMPAT -> TQT_NO_COMPAT QT_NO_TRANSLATION -> TQT_NO_TRANSLATION Signed-off-by: Michele Calgaro --- configure.py | 2 +- doc/limits.html | 4 ++-- postproc | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.py b/configure.py index d719b13..8d3529c 100644 --- a/configure.py +++ b/configure.py @@ -641,7 +641,7 @@ def generate_code(mname, imports=None, extra_cflags=None, extra_cxxflags=None, e # finally, run SIP and generate the C++ code os.system (string.join(argv)) - # post process the C++ code for QT_NO_TRANSLATION + # post process the C++ code for TQT_NO_TRANSLATION if os.system (string.join ([sys.executable, srcPath("postproc")] + ['-p', mname, "-o", "tr", "*.cpp"])) != 0: sipconfig.error ("Post processing of C++ code failed %s (tr)" % mname) diff --git a/doc/limits.html b/doc/limits.html index 542417e..68bbe28 100644 --- a/doc/limits.html +++ b/doc/limits.html @@ -323,10 +323,10 @@ one TQt class.

PyKDE handles this situation by NOT providing tr() methods (either the inherited diff --git a/postproc b/postproc index 1a05c15..efa05cb 100755 --- a/postproc +++ b/postproc @@ -85,7 +85,7 @@ def getFilelist (): # --------- operations ---------- # removes sipDo__tr and table reference ('sipName_qt_tr') -# because KDE2 is compiled with QT_NO_TRANSLATION defined (which also +# because KDE2 is compiled with TQT_NO_TRANSLATION defined (which also # makes TQObject::tr methods invisible to any KDE2 TQObject descendants) def trFix (filelist): @@ -164,7 +164,7 @@ def qtNoTr (filelist): tmp.write (buff [i]) i = i + 1 - tmp.write ("#define QT_NO_TRANSLATION\n") + tmp.write ("#define TQT_NO_TRANSLATION\n") while (i < nLines): tmp.write (buff [i])