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])