From 1607518b8c749b4195c5ab11b405f77001526a6a Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 12 Aug 2023 18:44:08 +0900 Subject: Drop TQT_BASE_OBJECT* defines Signed-off-by: Michele Calgaro (cherry picked from commit a7ea84c97639f635d798348432f355e3ac496a1d) --- kexi/kexiutils/utils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kexi/kexiutils/utils.h') diff --git a/kexi/kexiutils/utils.h b/kexi/kexiutils/utils.h index acb3cf07..e244f02e 100644 --- a/kexi/kexiutils/utils.h +++ b/kexi/kexiutils/utils.h @@ -42,7 +42,7 @@ namespace KexiUtils //! \return parent object of \a o that inherits \a className or NULL if no such parent template - inline type* findParent(TQT_BASE_OBJECT_NAME* o, const char* className) + inline type* findParent(TQObject* o, const char* className) { if (!o || !className || className[0]=='\0') return 0; @@ -67,12 +67,12 @@ namespace KexiUtils If objName is 0 (the default), all object names match. Returned pointer type is casted. */ template - type* findFirstChild(TQT_BASE_OBJECT_NAME *o, const char* className, const char* objName = 0) + type* findFirstChild(TQObject *o, const char* className, const char* objName = 0) { if (!o || !className || className[0]=='\0') return 0; TQObjectList *l = TQT_TQOBJECT(o)->queryList( className, objName ); - TQT_BASE_OBJECT_NAME *result = l->first(); + TQObject *result = l->first(); delete l; return static_cast(result); } -- cgit v1.2.1