Replace various Q_* and QT_* defines with TQ_* and TQT_*

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit db3abe1860)
r14.1.x r14.1.1
Michele Calgaro 8 months ago
parent c6acfabe32
commit 8bb7d792c7
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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.

@ -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

@ -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

@ -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.

@ -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.

@ -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):

@ -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;

Loading…
Cancel
Save