summaryrefslogtreecommitdiffstats
path: root/kexi/kexiutils/utils.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit04766b207afba7961d4d802313e426f5a2fbef63 (patch)
treec888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /kexi/kexiutils/utils.h
parentb6edfe41c9395f2e20784cbf0e630af6426950a3 (diff)
downloadkoffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz
koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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);