From 48d4a26399959121f33d2bc3bfe51c7827b654fc Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 14 Jun 2011 16:45:05 +0000 Subject: TQt4 port kdevelop This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/python/pythonimplementationwidget.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'languages/python/pythonimplementationwidget.cpp') 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 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; -- cgit v1.2.3