diff options
Diffstat (limited to 'languages/cpp/app_templates/kpartapp')
-rw-r--r-- | languages/cpp/app_templates/kpartapp/app_part.cpp | 10 | ||||
-rw-r--r-- | languages/cpp/app_templates/kpartapp/app_part.h | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/languages/cpp/app_templates/kpartapp/app_part.cpp b/languages/cpp/app_templates/kpartapp/app_part.cpp index 479a6782..1f3992af 100644 --- a/languages/cpp/app_templates/kpartapp/app_part.cpp +++ b/languages/cpp/app_templates/kpartapp/app_part.cpp @@ -13,8 +13,8 @@ #include <tqmultilineedit.h> %{APPNAME}Part::%{APPNAME}Part( TQWidget *parentWidget, const char *widgetName, - TQObject *tqparent, const char *name ) - : KParts::ReadWritePart(tqparent, name) + TQObject *parent, const char *name ) + : KParts::ReadWritePart(parent, name) { // we need an instance setInstance( %{APPNAME}PartFactory::instance() ); @@ -74,7 +74,7 @@ void %{APPNAME}Part::setModified(bool modified) else save->setEnabled(false); - // in any event, we want our tqparent to do it's thing + // in any event, we want our parent to do it's thing ReadWritePart::setModified(modified); } @@ -165,11 +165,11 @@ KAboutData* %{APPNAME}PartFactory::s_about = 0L; } KParts::Part* %{APPNAME}PartFactory::createPartObject( TQWidget *parentWidget, const char *widgetName, - TQObject *tqparent, const char *name, + TQObject *parent, const char *name, const char *classname, const TQStringList &args ) { // Create an instance of our Part - %{APPNAME}Part* obj = new %{APPNAME}Part( parentWidget, widgetName, tqparent, name ); + %{APPNAME}Part* obj = new %{APPNAME}Part( parentWidget, widgetName, parent, name ); // See if we are to be read-write or not if (TQCString(classname) == "KParts::ReadOnlyPart") diff --git a/languages/cpp/app_templates/kpartapp/app_part.h b/languages/cpp/app_templates/kpartapp/app_part.h index 3a481c5c..30f99b04 100644 --- a/languages/cpp/app_templates/kpartapp/app_part.h +++ b/languages/cpp/app_templates/kpartapp/app_part.h @@ -27,7 +27,7 @@ public: * Default constructor */ %{APPNAME}Part(TQWidget *parentWidget, const char *widgetName, - TQObject *tqparent, const char *name); + TQObject *parent, const char *name); /** * Destructor @@ -76,7 +76,7 @@ public: %{APPNAME}PartFactory(); virtual ~%{APPNAME}PartFactory(); virtual KParts::Part* createPartObject( TQWidget *parentWidget, const char *widgetName, - TQObject *tqparent, const char *name, + TQObject *parent, const char *name, const char *classname, const TQStringList &args ); static KInstance* instance(); |