summaryrefslogtreecommitdiffstats
path: root/kcontrol/locale/toplevel.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-12 10:17:40 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-13 16:25:00 +0900
commit76fa61f90d0fdaacff018bccae25b3c2ef1b4ea8 (patch)
treed104cde3708dce85cfd6b3ed73cfbafa4ffb9e06 /kcontrol/locale/toplevel.cpp
parenta5979a0e0f46e7da68d50d16919e46b89dc9e9e9 (diff)
downloadtdebase-76fa61f90d0fdaacff018bccae25b3c2ef1b4ea8.tar.gz
tdebase-76fa61f90d0fdaacff018bccae25b3c2ef1b4ea8.zip
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 22625693f124aae09863f4d33e30b625a96c3557)
Diffstat (limited to 'kcontrol/locale/toplevel.cpp')
-rw-r--r--kcontrol/locale/toplevel.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kcontrol/locale/toplevel.cpp b/kcontrol/locale/toplevel.cpp
index d2a17ca74..339405461 100644
--- a/kcontrol/locale/toplevel.cpp
+++ b/kcontrol/locale/toplevel.cpp
@@ -244,7 +244,7 @@ void TDELocaleApplication::slotTranslate()
// The untranslated string for TQLabel are stored in
// the name() so we use that when retranslating
TQObject *wc;
- TQObjectList *list = queryList(TQWIDGET_OBJECT_NAME_STRING);
+ TQObjectList *list = queryList("TQWidget");
TQObjectListIt it(*list);
while ( (wc = it.current()) != 0 )
{
@@ -260,15 +260,15 @@ void TDELocaleApplication::slotTranslate()
if (::qstrcmp(wc->name(), "unnamed") == 0)
continue;
- if (::qstrcmp(wc->className(), TQLABEL_OBJECT_NAME_STRING) == 0)
+ if (::qstrcmp(wc->className(), "TQLabel") == 0)
((TQLabel *)wc)->setText( m_locale->translate( wc->name() ) );
- else if (::qstrcmp(wc->className(), TQGROUPBOX_OBJECT_NAME_STRING) == 0 ||
- ::qstrcmp(wc->className(), TQVGROUPBOX_OBJECT_NAME_STRING) == 0)
+ else if (::qstrcmp(wc->className(), "TQGroupBox") == 0 ||
+ ::qstrcmp(wc->className(), "TQVGroupBox") == 0)
((TQGroupBox *)wc)->setTitle( m_locale->translate( wc->name() ) );
- else if (::qstrcmp(wc->className(), TQPUSHBUTTON_OBJECT_NAME_STRING) == 0 ||
+ else if (::qstrcmp(wc->className(), "TQPushButton") == 0 ||
::qstrcmp(wc->className(), "KMenuButton") == 0)
((TQPushButton *)wc)->setText( m_locale->translate( wc->name() ) );
- else if (::qstrcmp(wc->className(), TQCHECKBOX_OBJECT_NAME_STRING) == 0)
+ else if (::qstrcmp(wc->className(), "TQCheckBox") == 0)
((TQCheckBox *)wc)->setText( m_locale->translate( wc->name() ) );
}
delete list;