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.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/kexi/kexiutils/utils.h b/kexi/kexiutils/utils.h
index 118f2d64..d7bdbae8 100644
--- a/kexi/kexiutils/utils.h
+++ b/kexi/kexiutils/utils.h
@@ -30,23 +30,23 @@ class TQColor;
//! @short General Utils
namespace KexiUtils
{
- //! \return true if \a o has tqparent \a par.
+ //! \return true if \a o has parent \a par.
inline bool hasParent(TQObject* par, TQObject* o)
{
if (!o || !par)
return false;
while (o && o!=par)
- o = o->tqparent();
+ o = o->parent();
return o==par;
}
- //! \return tqparent object of \a o that inherits \a className or NULL if no such tqparent
+ //! \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)
{
if (!o || !className || className[0]=='\0')
return 0;
- while ( ((o=TQT_TQOBJECT(o)->tqparent())) && !TQT_TQOBJECT(o)->inherits(className) )
+ while ( ((o=TQT_TQOBJECT(o)->parent())) && !TQT_TQOBJECT(o)->inherits(className) )
;
return static_cast<type*>(o);
}
@@ -58,7 +58,7 @@ namespace KexiUtils
const TQObject * obj = o;
if (!obj || !className || className[0]=='\0')
return 0;
- while ( ((obj=obj->tqparent())) && !obj->inherits(className) )
+ while ( ((obj=obj->parent())) && !obj->inherits(className) )
;
return static_cast<const type*>(obj);
}
@@ -195,7 +195,7 @@ namespace KexiUtils
#ifdef KEXI_DEBUG_GUI
//! Creates debug window for convenient debugging output
- KEXIUTILS_EXPORT TQWidget *createDebugWindow(TQWidget *tqparent);
+ KEXIUTILS_EXPORT TQWidget *createDebugWindow(TQWidget *parent);
//! Adds debug line for for KexiDB database
KEXIUTILS_EXPORT void addKexiDBDebug(const TQString& text);