From 1e6b97e1b1d29b0a895643eb9ce7ffe08d6fed75 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 11 Jul 2023 21:03:51 +0900 Subject: Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3. Signed-off-by: Michele Calgaro --- src/modules/options/dialog.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/options/dialog.cpp') diff --git a/src/modules/options/dialog.cpp b/src/modules/options/dialog.cpp index 6a9912ae..5f28da7d 100644 --- a/src/modules/options/dialog.cpp +++ b/src/modules/options/dialog.cpp @@ -339,11 +339,11 @@ bool KviOptionsDialog::recursiveSearch(KviOptionsListViewItem * pItem,const TQSt { #endif TQString szText; - if(o->inherits(TQLABEL_OBJECT_NAME_STRING))szText = ((TQLabel *)o)->text(); - else if(o->inherits(TQCHECKBOX_OBJECT_NAME_STRING))szText = ((TQCheckBox *)o)->text(); + if(o->inherits("TQLabel"))szText = ((TQLabel *)o)->text(); + else if(o->inherits("TQCheckBox"))szText = ((TQCheckBox *)o)->text(); else if(o->inherits("KviTalGroupBox"))szText = ((KviTalGroupBox *)o)->title(); #ifdef COMPILE_INFO_TIPS - if(o->inherits(TQWIDGET_OBJECT_NAME_STRING)) + if(o->inherits("TQWidget")) #ifdef COMPILE_USE_QT4 szText.append(((TQWidget *)o)->toolTip()); #else @@ -370,7 +370,7 @@ bool KviOptionsDialog::recursiveSearch(KviOptionsListViewItem * pItem,const TQSt bFoundSomethingHere = true; } - if(o->inherits(TQWIDGET_OBJECT_NAME_STRING)) + if(o->inherits("TQWidget")) { TQWidget* pWidget=(TQWidget*)o; TQFont font = pWidget->font(); @@ -382,7 +382,7 @@ bool KviOptionsDialog::recursiveSearch(KviOptionsListViewItem * pItem,const TQSt TQObject * pParent = pWidget->parent(); while(pParent) { - if(pParent->inherits(TQTABWIDGET_OBJECT_NAME_STRING)) + if(pParent->inherits("TQTabWidget")) { pTabWidgetToMark = (TQTabWidget *)pParent; break; -- cgit v1.2.1