diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 9abdf0551e3660f55791ce3720d5f7035c06aa19 (patch) | |
tree | 30466a53042f3fd9ff5d3e4db0dc1120d0d8648b /lib/pluginfactory.h | |
parent | 539a35866f0bac8f00e493654d4a8ec6863726e2 (diff) | |
download | kpilot-9abdf0551e3660f55791ce3720d5f7035c06aa19.tar.gz kpilot-9abdf0551e3660f55791ce3720d5f7035c06aa19.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpilot@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/pluginfactory.h')
-rw-r--r-- | lib/pluginfactory.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/pluginfactory.h b/lib/pluginfactory.h index 4fa2d6f..dbbe2ec 100644 --- a/lib/pluginfactory.h +++ b/lib/pluginfactory.h @@ -45,26 +45,26 @@ class KPilotLink; template <class Widget, class Action> class ConduitFactory : public KLibFactory { public: - ConduitFactory(TQObject *tqparent = 0, const char *name = 0) : - KLibFactory(tqparent,name) + ConduitFactory(TQObject *parent = 0, const char *name = 0) : + KLibFactory(parent,name) { fInstance = new KInstance(name); } ; virtual ~ConduitFactory() { delete fInstance; } ; protected: virtual TQObject *createObject( - TQObject* tqparent = 0, + TQObject* parent = 0, const char* name = 0, const char* classname = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() ) { if (qstrcmp(classname,"ConduitConfigBase")==0) { - TQWidget *w = dynamic_cast<TQWidget *>(tqparent); + TQWidget *w = dynamic_cast<TQWidget *>(parent); if (w) return new Widget(w,name); else { - WARNINGKPILOT << "Could not cast tqparent to widget." << endl; + WARNINGKPILOT << "Could not cast parent to widget." << endl; return 0L; } } @@ -72,11 +72,11 @@ protected: if (qstrcmp(classname,"SyncAction")==0) { KPilotLink *d = 0L; - if (tqparent) d = dynamic_cast<KPilotLink *>(tqparent); + if (parent) d = dynamic_cast<KPilotLink *>(parent); - if (d || !tqparent) + if (d || !parent) { - if (!tqparent) + if (!parent) { kdDebug() << k_funcinfo << ": Using NULL device." << endl; } @@ -84,7 +84,7 @@ protected: } else { - WARNINGKPILOT << "Could not cast tqparent to KPilotLink" << endl; + WARNINGKPILOT << "Could not cast parent to KPilotLink" << endl; return 0L; } } |