summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-09-27 17:59:14 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-09-27 17:59:14 +0900
commit5514eaadfac721d2383f589cbb50329da1efd7e7 (patch)
tree00ed826d7eeef156fe2d75363d773af7561906c7
parent7847ebf44efa91be3d161b96e8830ea144cef5a5 (diff)
downloadpytde-5514eaad.tar.gz
pytde-5514eaad.zip
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 <michele.calgaro@yahoo.it>
-rw-r--r--configure.py2
-rw-r--r--doc/limits.html4
-rwxr-xr-xpostproc4
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
diff --git a/postproc b/postproc
index 1a05c15..efa05cb 100755
--- a/postproc
+++ b/postproc
@@ -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])