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/qtdesignerpythonintegration.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'languages/python/qtdesignerpythonintegration.cpp') diff --git a/languages/python/qtdesignerpythonintegration.cpp b/languages/python/qtdesignerpythonintegration.cpp index 53950f65..c0e6dba1 100644 --- a/languages/python/qtdesignerpythonintegration.cpp +++ b/languages/python/qtdesignerpythonintegration.cpp @@ -38,18 +38,18 @@ #include "codemodel_utils.h" #include "implementationwidget.h" -QtDesignerPythonIntegration::QtDesignerPythonIntegration(KDevLanguageSupport* part, ImplementationWidget* impl) - :QtDesignerIntegration(part, impl, false, 0) +TQtDesignerPythonIntegration::TQtDesignerPythonIntegration(KDevLanguageSupport* part, ImplementationWidget* impl) + :TQtDesignerIntegration(part, impl, false, 0) { } -QtDesignerPythonIntegration::~QtDesignerPythonIntegration() +TQtDesignerPythonIntegration::~TQtDesignerPythonIntegration() { } -void QtDesignerPythonIntegration::addFunctionToClass(KInterfaceDesigner::Function function, ClassDom klass) +void TQtDesignerPythonIntegration::addFunctionToClass(KInterfaceDesigner::Function function, ClassDom klass) { m_part->partController()->editDocument( KURL( klass->fileName() ) ); KTextEditor::EditInterface* editIface = dynamic_cast( m_part->partController()->activePart() ); @@ -65,7 +65,7 @@ void QtDesignerPythonIntegration::addFunctionToClass(KInterfaceDesigner::Functio klass->getStartPosition( &line, &column ); // compute the insertion point - QPair point; + TQPair point; point.first = line + 1; point.second = column; @@ -78,7 +78,7 @@ void QtDesignerPythonIntegration::addFunctionToClass(KInterfaceDesigner::Functio } TQString func = function.function; - func.replace("()", ""); + func.tqreplace("()", ""); TQString str = " def " + func + "(self):\n\n"; kdDebug(9014) << "insert " << str << " into " << point.first << endl; -- cgit v1.2.1