diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-12 10:17:40 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-13 16:25:00 +0900 |
commit | 76fa61f90d0fdaacff018bccae25b3c2ef1b4ea8 (patch) | |
tree | d104cde3708dce85cfd6b3ed73cfbafa4ffb9e06 /kcontrol | |
parent | a5979a0e0f46e7da68d50d16919e46b89dc9e9e9 (diff) | |
download | tdebase-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')
-rw-r--r-- | kcontrol/kcontrol/global.cpp | 2 | ||||
-rw-r--r-- | kcontrol/keys/modifiers.cpp | 10 | ||||
-rw-r--r-- | kcontrol/locale/toplevel.cpp | 12 | ||||
-rw-r--r-- | kcontrol/style/stylepreview.ui.h | 2 | ||||
-rw-r--r-- | kcontrol/tdefontinst/viewpart/FontViewPartFactory.h | 2 |
5 files changed, 14 insertions, 14 deletions
diff --git a/kcontrol/kcontrol/global.cpp b/kcontrol/kcontrol/global.cpp index ca80619e5..b17581846 100644 --- a/kcontrol/kcontrol/global.cpp +++ b/kcontrol/kcontrol/global.cpp @@ -105,7 +105,7 @@ TQString KCGlobal::baseGroup() void KCGlobal::repairAccels( TQWidget * tw ) { - TQObjectList * l = tw->queryList( TQACCEL_OBJECT_NAME_STRING ); + TQObjectList * l = tw->queryList( "TQAccel" ); TQObjectListIt it( *l ); // iterate over the buttons TQObject * obj; while ( (obj=it.current()) != 0 ) { // for each found object... diff --git a/kcontrol/keys/modifiers.cpp b/kcontrol/keys/modifiers.cpp index 39dfb7010..084bf040d 100644 --- a/kcontrol/keys/modifiers.cpp +++ b/kcontrol/keys/modifiers.cpp @@ -183,13 +183,13 @@ void ModifiersModule::initGUI() plbl = new TQLabel( i18n("X11-Mod"), pGroup ); plbl->setFont( font ); - new TQLabel( i18n(TQACCEL_OBJECT_NAME_STRING, "Shift"), pGroup ); + new TQLabel( i18n("TQAccel", "Shift"), pGroup ); new TQLabel( "shift", pGroup ); - m_plblCtrl = new TQLabel( i18n(TQACCEL_OBJECT_NAME_STRING, "Ctrl"), pGroup ); + m_plblCtrl = new TQLabel( i18n("TQAccel", "Ctrl"), pGroup ); new TQLabel( "control", pGroup ); - m_plblAlt = new TQLabel( i18n(TQACCEL_OBJECT_NAME_STRING, "Alt"), pGroup ); + m_plblAlt = new TQLabel( i18n("TQAccel", "Alt"), pGroup ); new TQLabel( "mod1", pGroup ); m_plblWin = new TQLabel( i18n("Win"), pGroup ); @@ -286,8 +286,8 @@ void ModifiersModule::updateWidgets() } m_pchkMacSwap->setEnabled( true ); } else { - m_plblCtrl->setText( i18n(TQACCEL_OBJECT_NAME_STRING, "Ctrl") ); - m_plblAlt->setText( i18n(TQACCEL_OBJECT_NAME_STRING, "Alt") ); + m_plblCtrl->setText( i18n("TQAccel", "Ctrl") ); + m_plblAlt->setText( i18n("TQAccel", "Alt") ); m_plblWin->setText( i18n("Win") ); m_pchkMacSwap->setEnabled( false ); } 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; diff --git a/kcontrol/style/stylepreview.ui.h b/kcontrol/style/stylepreview.ui.h index 6ea29b376..66bc6ade5 100644 --- a/kcontrol/style/stylepreview.ui.h +++ b/kcontrol/style/stylepreview.ui.h @@ -33,7 +33,7 @@ void StylePreview::init() { // Ensure that the user can't toy with the child widgets. // Method borrowed from Qt's qtconfig. - TQObjectList* l = queryList(TQWIDGET_OBJECT_NAME_STRING); + TQObjectList* l = queryList("TQWidget"); TQObjectListIt it(*l); TQObject* obj; while ((obj = it.current()) != 0) diff --git a/kcontrol/tdefontinst/viewpart/FontViewPartFactory.h b/kcontrol/tdefontinst/viewpart/FontViewPartFactory.h index 7ac96e9c8..cd729eda8 100644 --- a/kcontrol/tdefontinst/viewpart/FontViewPartFactory.h +++ b/kcontrol/tdefontinst/viewpart/FontViewPartFactory.h @@ -45,7 +45,7 @@ class CFontViewPartFactory : public KLibFactory CFontViewPartFactory(); virtual ~CFontViewPartFactory(); - virtual TQObject *createObject(TQObject *parent = 0, const char *name = 0, const char *classname = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList()); + virtual TQObject *createObject(TQObject *parent = 0, const char *name = 0, const char *classname = "TQObject", const TQStringList &args = TQStringList()); static TDEInstance * instance(); |