From db3abe1860a5c9afa4893cb59499868f6ff1f5aa Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Sep 2023 12:45:51 +0900 Subject: [PATCH] Replace various Q_* and QT_* defines with TQ_* and TQT_* Signed-off-by: Michele Calgaro --- ChangeLog | 4 ++-- NEWS | 2 +- doc/PyTQt.html | 4 ++-- doc/PyTQt.sgml | 4 ++-- doc/tqtdocs.sip | 4 ++-- examples/i18n/mywidget.py | 6 +++--- sip/tqt/tqobject.sip | 4 ++-- 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 QT_TR_NOOP()TQT_TR_NOOP() and QT_TRANSLATE_NOOP()TQT_TRANSLATE_NOOP() macros to .tsUsing TQt Linguist TQt includes the lupdate program which parses C++ source -files converting calls to the QT_TR_NOOP() and -QT_TRANSLATE_NOOP() macros to .ts +files converting calls to the TQT_TR_NOOP() and +TQT_TRANSLATE_NOOP() macros to .ts language source files. The lrelease program is then used to generate .qm 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. Using TQt Linguist TQt includes the lupdate program which parses C++ source -files converting calls to the QT_TR_NOOP() and -QT_TRANSLATE_NOOP() macros to .ts +files converting calls to the TQT_TR_NOOP() and +TQT_TRANSLATE_NOOP() macros to .ts language source files. The lrelease program is then used to generate .qm 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;