summaryrefslogtreecommitdiffstats
path: root/kcontrol/locale
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-24 07:08:32 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-24 07:08:32 +0000
commitf1fdec42303ca53d085302ea2af9110cd1d79570 (patch)
tree6fbc7d845deb57ffaff27e03fc2c7058ebead321 /kcontrol/locale
parent841194d1bffdf87bcdbae758777e6c88aef6bf1d (diff)
downloadtdebase-f1fdec42303ca53d085302ea2af9110cd1d79570.tar.gz
tdebase-f1fdec42303ca53d085302ea2af9110cd1d79570.zip
Fix a number of runtime object identification problems which led to an even larger array of minor glitches
NOTE: kdevelop and kdewebdev still need to be fully repaired git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1222475 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/locale')
-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 523fa50ea..e53b52ed5 100644
--- a/kcontrol/locale/toplevel.cpp
+++ b/kcontrol/locale/toplevel.cpp
@@ -227,7 +227,7 @@ void KLocaleApplication::slotTranslate()
// The untranslated string for TQLabel are stored in
// the name() so we use that when retranslating
TQObject *wc;
- TQObjectList *list = queryList("TQWidget");
+ TQObjectList *list = queryList(TQWIDGET_OBJECT_NAME_STRING);
TQObjectListIt it(*list);
while ( (wc = it.current()) != 0 )
{
@@ -243,15 +243,15 @@ void KLocaleApplication::slotTranslate()
if (::qstrcmp(wc->name(), "unnamed") == 0)
continue;
- if (::qstrcmp(wc->className(), "TQLabel") == 0)
+ if (::qstrcmp(wc->className(), TQLABEL_OBJECT_NAME_STRING) == 0)
((TQLabel *)wc)->setText( m_locale->translate( wc->name() ) );
- else if (::qstrcmp(wc->className(), "TQGroupBox") == 0 ||
- ::qstrcmp(wc->className(), "TQVGroupBox") == 0)
+ else if (::qstrcmp(wc->className(), TQGROUPBOX_OBJECT_NAME_STRING) == 0 ||
+ ::qstrcmp(wc->className(), TQVGROUPBOX_OBJECT_NAME_STRING) == 0)
((TQGroupBox *)wc)->setTitle( m_locale->translate( wc->name() ) );
- else if (::qstrcmp(wc->className(), "TQPushButton") == 0 ||
+ else if (::qstrcmp(wc->className(), TQPUSHBUTTON_OBJECT_NAME_STRING) == 0 ||
::qstrcmp(wc->className(), "KMenuButton") == 0)
((TQPushButton *)wc)->setText( m_locale->translate( wc->name() ) );
- else if (::qstrcmp(wc->className(), "TQCheckBox") == 0)
+ else if (::qstrcmp(wc->className(), TQCHECKBOX_OBJECT_NAME_STRING) == 0)
((TQCheckBox *)wc)->setText( m_locale->translate( wc->name() ) );
}
delete list;