From 462dc85dcb12aab8e19797dadf48799656708a54 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 11 Jul 2023 21:42:08 +0900 Subject: Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3. Signed-off-by: Michele Calgaro (cherry picked from commit 20e4a19b0d7cc800d57be50c56d69023adae4046) --- kexi/plugins/forms/widgets/kexidbform.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kexi/plugins/forms/widgets/kexidbform.cpp') diff --git a/kexi/plugins/forms/widgets/kexidbform.cpp b/kexi/plugins/forms/widgets/kexidbform.cpp index 17242953..980e384d 100644 --- a/kexi/plugins/forms/widgets/kexidbform.cpp +++ b/kexi/plugins/forms/widgets/kexidbform.cpp @@ -128,7 +128,7 @@ KexiDataAwareObjectInterface* KexiDBForm::dataAwareObject() const { return d->da //repaint all children widgets static void repaintAll(TQWidget *w) { - TQObjectList *list = w->queryList(TQWIDGET_OBJECT_NAME_STRING); + TQObjectList *list = w->queryList("TQWidget"); TQObjectListIt it(*list); for (TQObject *obj; (obj=it.current()); ++it ) { TQT_TQWIDGET(obj)->repaint(); @@ -314,7 +314,7 @@ void KexiDBForm::updateTabStopsOrder(KFormDesigner::Form* form) //this widget has tab focus: it.current()->widget()->installEventFilter(this); //also filter events for data-aware children of this widget (i.e. KexiDBAutoField's editors) - TQObjectList *children = it.current()->widget()->queryList(TQWIDGET_OBJECT_NAME_STRING); + TQObjectList *children = it.current()->widget()->queryList("TQWidget"); for (TQObjectListIt childrenIt(*children); childrenIt.current(); ++childrenIt) { // if (dynamic_cast(childrenIt.current())) { kexipluginsdbg << "KexiDBForm::updateTabStopsOrder(): also adding '" @@ -404,7 +404,7 @@ bool KexiDBForm::eventFilter( TQObject * watched, TQEvent * e ) if (!tab && !backtab) { //for buttons, left/up and right/down keys act like tab/backtab (see qbutton.cpp) - if (realWidget->inherits(TQBUTTON_OBJECT_NAME_STRING)) { + if (realWidget->inherits("TQButton")) { if (ke->state() == Qt::NoButton && (key == TQt::Key_Right || key == TQt::Key_Down)) tab = true; else if (ke->state() == Qt::NoButton && (key == TQt::Key_Left || key == TQt::Key_Up)) -- cgit v1.2.1