summaryrefslogtreecommitdiffstats
path: root/kcontrol/locale/toplevel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/locale/toplevel.cpp')
-rw-r--r--kcontrol/locale/toplevel.cpp104
1 files changed, 52 insertions, 52 deletions
diff --git a/kcontrol/locale/toplevel.cpp b/kcontrol/locale/toplevel.cpp
index d2a17ca74..a0562c5fa 100644
--- a/kcontrol/locale/toplevel.cpp
+++ b/kcontrol/locale/toplevel.cpp
@@ -84,64 +84,64 @@ TDELocaleApplication::TDELocaleApplication(TQWidget *parent, const char* /*name*
m_sample = new TDELocaleSample(m_locale, m_gbox);
// getting signals from childs
- connect(m_localemain, TQT_SIGNAL(localeChanged()),
- this, TQT_SIGNAL(localeChanged()));
- connect(m_localemain, TQT_SIGNAL(languageChanged()),
- this, TQT_SIGNAL(languageChanged()));
+ connect(m_localemain, TQ_SIGNAL(localeChanged()),
+ this, TQ_SIGNAL(localeChanged()));
+ connect(m_localemain, TQ_SIGNAL(languageChanged()),
+ this, TQ_SIGNAL(languageChanged()));
// run the slots on the childs
- connect(this, TQT_SIGNAL(localeChanged()),
- m_localemain, TQT_SLOT(slotLocaleChanged()));
- connect(this, TQT_SIGNAL(localeChanged()),
- m_localenum, TQT_SLOT(slotLocaleChanged()));
- connect(this, TQT_SIGNAL(localeChanged()),
- m_localemon, TQT_SLOT(slotLocaleChanged()));
- connect(this, TQT_SIGNAL(localeChanged()),
- m_localetime, TQT_SLOT(slotLocaleChanged()));
- connect(this, TQT_SIGNAL(localeChanged()),
- m_localeother, TQT_SLOT(slotLocaleChanged()));
+ connect(this, TQ_SIGNAL(localeChanged()),
+ m_localemain, TQ_SLOT(slotLocaleChanged()));
+ connect(this, TQ_SIGNAL(localeChanged()),
+ m_localenum, TQ_SLOT(slotLocaleChanged()));
+ connect(this, TQ_SIGNAL(localeChanged()),
+ m_localemon, TQ_SLOT(slotLocaleChanged()));
+ connect(this, TQ_SIGNAL(localeChanged()),
+ m_localetime, TQ_SLOT(slotLocaleChanged()));
+ connect(this, TQ_SIGNAL(localeChanged()),
+ m_localeother, TQ_SLOT(slotLocaleChanged()));
// keep the example up to date
// NOTE: this will make the sample be updated 6 times the first time
// because combo boxes++ emits the change signal not only when the user changes
// it, but also when it's changed by the program.
- connect(m_localenum, TQT_SIGNAL(localeChanged()),
- m_sample, TQT_SLOT(slotLocaleChanged()));
- connect(m_localemon, TQT_SIGNAL(localeChanged()),
- m_sample, TQT_SLOT(slotLocaleChanged()));
- connect(m_localetime, TQT_SIGNAL(localeChanged()),
- m_sample, TQT_SLOT(slotLocaleChanged()));
+ connect(m_localenum, TQ_SIGNAL(localeChanged()),
+ m_sample, TQ_SLOT(slotLocaleChanged()));
+ connect(m_localemon, TQ_SIGNAL(localeChanged()),
+ m_sample, TQ_SLOT(slotLocaleChanged()));
+ connect(m_localetime, TQ_SIGNAL(localeChanged()),
+ m_sample, TQ_SLOT(slotLocaleChanged()));
// No examples for this yet
- //connect(m_localeother, TQT_SIGNAL(slotLocaleChanged()),
- //m_sample, TQT_SLOT(slotLocaleChanged()));
- connect(this, TQT_SIGNAL(localeChanged()),
- m_sample, TQT_SLOT(slotLocaleChanged()));
+ //connect(m_localeother, TQ_SIGNAL(slotLocaleChanged()),
+ //m_sample, TQ_SLOT(slotLocaleChanged()));
+ connect(this, TQ_SIGNAL(localeChanged()),
+ m_sample, TQ_SLOT(slotLocaleChanged()));
// make sure we always have translated interface
- connect(this, TQT_SIGNAL(languageChanged()),
- this, TQT_SLOT(slotTranslate()));
- connect(this, TQT_SIGNAL(languageChanged()),
- m_localemain, TQT_SLOT(slotTranslate()));
- connect(this, TQT_SIGNAL(languageChanged()),
- m_localenum, TQT_SLOT(slotTranslate()));
- connect(this, TQT_SIGNAL(languageChanged()),
- m_localemon, TQT_SLOT(slotTranslate()));
- connect(this, TQT_SIGNAL(languageChanged()),
- m_localetime, TQT_SLOT(slotTranslate()));
- connect(this, TQT_SIGNAL(languageChanged()),
- m_localeother, TQT_SLOT(slotTranslate()));
+ connect(this, TQ_SIGNAL(languageChanged()),
+ this, TQ_SLOT(slotTranslate()));
+ connect(this, TQ_SIGNAL(languageChanged()),
+ m_localemain, TQ_SLOT(slotTranslate()));
+ connect(this, TQ_SIGNAL(languageChanged()),
+ m_localenum, TQ_SLOT(slotTranslate()));
+ connect(this, TQ_SIGNAL(languageChanged()),
+ m_localemon, TQ_SLOT(slotTranslate()));
+ connect(this, TQ_SIGNAL(languageChanged()),
+ m_localetime, TQ_SLOT(slotTranslate()));
+ connect(this, TQ_SIGNAL(languageChanged()),
+ m_localeother, TQ_SLOT(slotTranslate()));
// mark it as changed when we change it.
- connect(m_localemain, TQT_SIGNAL(localeChanged()),
- TQT_SLOT(slotChanged()));
- connect(m_localenum, TQT_SIGNAL(localeChanged()),
- TQT_SLOT(slotChanged()));
- connect(m_localemon, TQT_SIGNAL(localeChanged()),
- TQT_SLOT(slotChanged()));
- connect(m_localetime, TQT_SIGNAL(localeChanged()),
- TQT_SLOT(slotChanged()));
- connect(m_localeother, TQT_SIGNAL(localeChanged()),
- TQT_SLOT(slotChanged()));
+ connect(m_localemain, TQ_SIGNAL(localeChanged()),
+ TQ_SLOT(slotChanged()));
+ connect(m_localenum, TQ_SIGNAL(localeChanged()),
+ TQ_SLOT(slotChanged()));
+ connect(m_localemon, TQ_SIGNAL(localeChanged()),
+ TQ_SLOT(slotChanged()));
+ connect(m_localetime, TQ_SIGNAL(localeChanged()),
+ TQ_SLOT(slotChanged()));
+ connect(m_localeother, TQ_SIGNAL(localeChanged()),
+ TQ_SLOT(slotChanged()));
load();
}
@@ -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;