diff options
| -rw-r--r-- | configure.py | 2 | ||||
| -rw-r--r-- | doc/limits.html | 4 | ||||
| -rwxr-xr-x | 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.</P  In a normal TQt installation, every descendant of TQObject inherits two methods  (tr (const char *) and tr (const char *, const char *) from TQObject explicitly  and also overloads these methods via the moc mechanism (by defining Q_OBJECT -in the class declaration). KDE however is compiled with -DQT_NO_TRANSLATION, +in the class declaration). KDE however is compiled with -DTQT_NO_TRANSLATION,  which prevents moc from creating the overloading tr() methods, and also produces  side-effects with a normal TQt installation which was compiled without the --DQT_NO_TRANSLATION switch. +-DTQT_NO_TRANSLATION switch.  </P>  <P>  PyKDE handles this situation by NOT providing tr() methods (either the inherited @@ -85,7 +85,7 @@ def getFilelist ():  # --------- operations ----------  # removes sipDo_<classname>_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]) | 
