summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-06 12:45:51 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-07 15:47:32 +0900
commitdb3abe1860a5c9afa4893cb59499868f6ff1f5aa (patch)
tree1cad8cd456d772284d266cc3f433a3e2e8c7544c
parent8ccbd4fc0219267d2d8b00e7191b1d92de834569 (diff)
downloadpytqt-db3abe1860a5c9afa4893cb59499868f6ff1f5aa.tar.gz
pytqt-db3abe1860a5c9afa4893cb59499868f6ff1f5aa.zip
Replace various Q_* and QT_* defines with TQ_* and TQT_*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--ChangeLog4
-rw-r--r--NEWS2
-rw-r--r--doc/PyTQt.html4
-rw-r--r--doc/PyTQt.sgml4
-rw-r--r--doc/tqtdocs.sip4
-rw-r--r--examples/i18n/mywidget.py6
-rw-r--r--sip/tqt/tqobject.sip4
7 files changed, 14 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 51e4ebe..9d9a50e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1799,7 +1799,7 @@ Improved the layout of the pyuic3 generated code slightly.
2003/01/04 19:45:03 phil
Updated the copyright notices for 2003.
-SLOT(), SIGNAL(), PYSIGNAL(), QT_TR_NOOP() and QT_TRANSLATE_NOOP() are now
+SLOT(), SIGNAL(), PYSIGNAL(), TQT_TR_NOOP() and TQT_TRANSLATE_NOOP() are now
implemented as wrapped functions.
PYQT_BUILD is now a string.
@@ -2119,7 +2119,7 @@ Added helpviewer as a standalone application.
2002/08/11 20:41:33 phil
-Added QT_TR_NOOP() and QT_TRANSLATE_NOOP().
+Added TQT_TR_NOOP() and TQT_TRANSLATE_NOOP().
Added the pylupdate program from Detlev.
diff --git a/NEWS b/NEWS
index 122e1af..1214274 100644
--- a/NEWS
+++ b/NEWS
@@ -198,7 +198,7 @@ v3.4 10th September 2002
- helpviewer is now installed as a standalone application.
- Added the progress.py example from Hans-Peter Jansen.
- Added the mdi.py and canvas.py examples from Sadi Kose.
- - Added QT_TR_NOOP() and QT_TRANSLATE_NOOP().
+ - Added TQT_TR_NOOP() and TQT_TRANSLATE_NOOP().
- Added TQApplication.winEventFilter(), TQWidget.winEvent(), MSG and POINT
under Windows.
- PyTQt is now licensed under several licenses including the GPL and a
diff --git a/doc/PyTQt.html b/doc/PyTQt.html
index 5d9b47b..5b1ed8d 100644
--- a/doc/PyTQt.html
+++ b/doc/PyTQt.html
@@ -392,11 +392,11 @@ CLASS="LITERAL"
> program which parses C++ source
files converting calls to the <TT
CLASS="LITERAL"
->QT_TR_NOOP()</TT
+>TQT_TR_NOOP()</TT
> and
<TT
CLASS="LITERAL"
->QT_TRANSLATE_NOOP()</TT
+>TQT_TRANSLATE_NOOP()</TT
> macros to <TT
CLASS="LITERAL"
>.ts</TT
diff --git a/doc/PyTQt.sgml b/doc/PyTQt.sgml
index 17a7dac..f7caada 100644
--- a/doc/PyTQt.sgml
+++ b/doc/PyTQt.sgml
@@ -316,8 +316,8 @@ annoying when trying to code in Python.
<Sect2><Title>Using TQt Linguist</Title>
<Para>
TQt includes the <Literal>lupdate</Literal> program which parses C++ source
-files converting calls to the <Literal>QT_TR_NOOP()</Literal> and
-<Literal>QT_TRANSLATE_NOOP()</Literal> macros to <Literal>.ts</Literal>
+files converting calls to the <Literal>TQT_TR_NOOP()</Literal> and
+<Literal>TQT_TRANSLATE_NOOP()</Literal> macros to <Literal>.ts</Literal>
language source files. The <Literal>lrelease</Literal> program is then used to
generate <Literal>.qm</Literal> binary language files that are distributed with
your application.
diff --git a/doc/tqtdocs.sip b/doc/tqtdocs.sip
index ba714af..ebf10e8 100644
--- a/doc/tqtdocs.sip
+++ b/doc/tqtdocs.sip
@@ -345,8 +345,8 @@ annoying when trying to code in Python.
<Sect2><Title>Using TQt Linguist</Title>
<Para>
TQt includes the <Literal>lupdate</Literal> program which parses C++ source
-files converting calls to the <Literal>QT_TR_NOOP()</Literal> and
-<Literal>QT_TRANSLATE_NOOP()</Literal> macros to <Literal>.ts</Literal>
+files converting calls to the <Literal>TQT_TR_NOOP()</Literal> and
+<Literal>TQT_TRANSLATE_NOOP()</Literal> macros to <Literal>.ts</Literal>
language source files. The <Literal>lrelease</Literal> program is then used to
generate <Literal>.qm</Literal> binary language files that are distributed with
your application.
diff --git a/examples/i18n/mywidget.py b/examples/i18n/mywidget.py
index cf5abea..a06a9ee 100644
--- a/examples/i18n/mywidget.py
+++ b/examples/i18n/mywidget.py
@@ -32,9 +32,9 @@ class MyWidget(TQMainWindow):
self.initChoices(self.central)
choices = [
- QT_TRANSLATE_NOOP("MyWidget", "First"),
- QT_TRANSLATE_NOOP("MyWidget", "Second"),
- QT_TRANSLATE_NOOP("MyWidget", "Third")
+ TQT_TRANSLATE_NOOP("MyWidget", "First"),
+ TQT_TRANSLATE_NOOP("MyWidget", "Second"),
+ TQT_TRANSLATE_NOOP("MyWidget", "Third")
]
def initChoices(self, parent):
diff --git a/sip/tqt/tqobject.sip b/sip/tqt/tqobject.sip
index ac0ad5f..e879c01 100644
--- a/sip/tqt/tqobject.sip
+++ b/sip/tqt/tqobject.sip
@@ -592,14 +592,14 @@ private:
};
-SIP_PYOBJECT QT_TR_NOOP(SIP_PYOBJECT);
+SIP_PYOBJECT TQT_TR_NOOP(SIP_PYOBJECT);
%MethodCode
Py_INCREF(a0);
sipRes = a0;
%End
-SIP_PYOBJECT QT_TRANSLATE_NOOP(SIP_PYOBJECT,SIP_PYOBJECT);
+SIP_PYOBJECT TQT_TRANSLATE_NOOP(SIP_PYOBJECT,SIP_PYOBJECT);
%MethodCode
Py_INCREF(a1);
sipRes = a1;