diff options
Diffstat (limited to 'lib/pluginfactory.h')
-rw-r--r-- | lib/pluginfactory.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/pluginfactory.h b/lib/pluginfactory.h index f43c706..4fa2d6f 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 *parent = 0, const char *name = 0) : - KLibFactory(parent,name) + ConduitFactory(TQObject *tqparent = 0, const char *name = 0) : + KLibFactory(tqparent,name) { fInstance = new KInstance(name); } ; virtual ~ConduitFactory() { delete fInstance; } ; protected: virtual TQObject *createObject( - TQObject* parent = 0, + TQObject* tqparent = 0, const char* name = 0, - const char* classname = "TQObject", + const char* classname = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() ) { if (qstrcmp(classname,"ConduitConfigBase")==0) { - TQWidget *w = dynamic_cast<TQWidget *>(parent); + TQWidget *w = dynamic_cast<TQWidget *>(tqparent); if (w) return new Widget(w,name); else { - WARNINGKPILOT << "Could not cast parent to widget." << endl; + WARNINGKPILOT << "Could not cast tqparent to widget." << endl; return 0L; } } @@ -72,11 +72,11 @@ protected: if (qstrcmp(classname,"SyncAction")==0) { KPilotLink *d = 0L; - if (parent) d = dynamic_cast<KPilotLink *>(parent); + if (tqparent) d = dynamic_cast<KPilotLink *>(tqparent); - if (d || !parent) + if (d || !tqparent) { - if (!parent) + if (!tqparent) { kdDebug() << k_funcinfo << ": Using NULL device." << endl; } @@ -84,7 +84,7 @@ protected: } else { - WARNINGKPILOT << "Could not cast parent to KPilotLink" << endl; + WARNINGKPILOT << "Could not cast tqparent to KPilotLink" << endl; return 0L; } } |