summaryrefslogtreecommitdiffstats
path: root/languages/python/pythonimplementationwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/python/pythonimplementationwidget.cpp')
-rw-r--r--languages/python/pythonimplementationwidget.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/languages/python/pythonimplementationwidget.cpp b/languages/python/pythonimplementationwidget.cpp
index 9aba5441..9e979f13 100644
--- a/languages/python/pythonimplementationwidget.cpp
+++ b/languages/python/pythonimplementationwidget.cpp
@@ -34,8 +34,8 @@
#include <kdevproject.h>
PythonImplementationWidget::PythonImplementationWidget(KDevLanguageSupport* part,
- TQWidget* parent, const char* name, bool modal)
- : ImplementationWidget(part, parent, name, modal)
+ TQWidget* tqparent, const char* name, bool modal)
+ : ImplementationWidget(part, tqparent, name, modal)
{
}
@@ -48,12 +48,12 @@ PythonImplementationWidget::~PythonImplementationWidget()
TQStringList PythonImplementationWidget::createClassFiles()
{
// TQString template_py = "require '$BASEFILENAME$'\n\nclass $CLASSNAME$ < $BASECLASSNAME$\n\n def initialize(*k)\n super(*k)\n end\n\nend\n";
- TQString template_py = "from qt import *\nfrom $BASEFILENAME$ import *\nclass $CLASSNAME$($BASECLASSNAME$):\n\n def __init__(self,parent,name):\n $BASECLASSNAME$.__init__(self,parent,name)\n \n\n\n";
+ TQString template_py = "from qt import *\nfrom $BASEFILENAME$ import *\nclass $CLASSNAME$($BASECLASSNAME$):\n\n def __init__(self,tqparent,name):\n $BASECLASSNAME$.__init__(self,tqparent,name)\n \n\n\n";
TQFileInfo formInfo(m_formName);
- template_py.replace(TQRegExp("\\$BASEFILENAME\\$"), formInfo.baseName()+".py");
- template_py.replace(TQRegExp("\\$CLASSNAME\\$"), classNameEdit->text());
- template_py.replace(TQRegExp("\\$BASECLASSNAME\\$"), m_baseClassName);
+ template_py.tqreplace(TQRegExp("\\$BASEFILENAME\\$"), formInfo.baseName()+".py");
+ template_py.tqreplace(TQRegExp("\\$CLASSNAME\\$"), classNameEdit->text());
+ template_py.tqreplace(TQRegExp("\\$BASECLASSNAME\\$"), m_baseClassName);
template_py = FileTemplate::read(m_part, "py") + template_py;