summaryrefslogtreecommitdiffstats
path: root/kexi/kexiutils/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/kexiutils/utils.h')
-rw-r--r--kexi/kexiutils/utils.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/kexi/kexiutils/utils.h b/kexi/kexiutils/utils.h
index acb3cf075..e244f02ee 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<class type>
- 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<class type>
- 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<type*>(result);
}