summaryrefslogtreecommitdiffstats
path: root/languages/python
diff options
context:
space:
mode:
Diffstat (limited to 'languages/python')
-rw-r--r--languages/python/README.dox2
-rw-r--r--languages/python/app_templates/pyqt/documentdetails.ui14
-rw-r--r--languages/python/app_templates/pyqt/templates-ui-dialog4
-rw-r--r--languages/python/app_templates/pyqt/templates-ui-mainwin8
-rw-r--r--languages/python/doc/python.toc20
-rwxr-xr-xlanguages/python/kde_pydoc.py8
-rw-r--r--languages/python/pythonconfigwidget.cpp4
-rw-r--r--languages/python/pythonconfigwidget.h3
-rw-r--r--languages/python/pythonconfigwidgetbase.ui18
-rw-r--r--languages/python/pythonimplementationwidget.cpp12
-rw-r--r--languages/python/pythonimplementationwidget.h3
-rw-r--r--languages/python/pythonsupportpart.cpp22
-rw-r--r--languages/python/pythonsupportpart.h3
-rw-r--r--languages/python/qtdesignerpythonintegration.cpp12
-rw-r--r--languages/python/qtdesignerpythonintegration.h11
15 files changed, 74 insertions, 70 deletions
diff --git a/languages/python/README.dox b/languages/python/README.dox
index 77d0f44c..e581f9e1 100644
--- a/languages/python/README.dox
+++ b/languages/python/README.dox
@@ -14,7 +14,7 @@ and images.
\maintainer <a href="mailto:nth maintainer AT provider.com">nth maintainer full name</a>
\feature Python support
-\feature Consult \ref LangSupportStatus for a up to date features/status of this programming language support part.
+\feature Consult \ref LangSupporttqStatus for a up to date features/status of this programming language support part.
\bug Describe a the 1st bug that you know of, but probably hasn't been reported yet.
..
diff --git a/languages/python/app_templates/pyqt/documentdetails.ui b/languages/python/app_templates/pyqt/documentdetails.ui
index 130d30ef..f1298465 100644
--- a/languages/python/app_templates/pyqt/documentdetails.ui
+++ b/languages/python/app_templates/pyqt/documentdetails.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>documentDetails</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>documentDetails</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -38,7 +38,7 @@
<enum>PlainText</enum>
</property>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -49,7 +49,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -57,14 +57,14 @@
<string>Name:</string>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>lineEdit1</cstring>
</property>
</widget>
</grid>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox2</cstring>
</property>
@@ -76,5 +76,5 @@
</widget>
<includes>
</includes>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/python/app_templates/pyqt/templates-ui-dialog b/languages/python/app_templates/pyqt/templates-ui-dialog
index fc2aefce..4b0c8bb2 100644
--- a/languages/python/app_templates/pyqt/templates-ui-dialog
+++ b/languages/python/app_templates/pyqt/templates-ui-dialog
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>Form1</class>
-<widget class="QDialog">
+<widget class=TQDIALOG_OBJECT_NAME_STRING>
<property name="name">
<cstring>Form1</cstring>
</property>
@@ -16,5 +16,5 @@
<string>Form1</string>
</property>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/python/app_templates/pyqt/templates-ui-mainwin b/languages/python/app_templates/pyqt/templates-ui-mainwin
index 854da009..4e0a093b 100644
--- a/languages/python/app_templates/pyqt/templates-ui-mainwin
+++ b/languages/python/app_templates/pyqt/templates-ui-mainwin
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>Form1</class>
-<widget class="QMainWindow">
+<widget class=TQMAINWINDOW_OBJECT_NAME_STRING>
<property name="name">
<cstring>Form1</cstring>
</property>
@@ -415,7 +415,7 @@
<slot>helpAbout()</slot>
</connection>
</connections>
-<slots>
+<Q_SLOTS>
<slot>fileNew()</slot>
<slot>fileOpen()</slot>
<slot>fileSave()</slot>
@@ -431,6 +431,6 @@
<slot>helpIndex()</slot>
<slot>helpContents()</slot>
<slot>helpAbout()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/python/doc/python.toc b/languages/python/doc/python.toc
index e5c67dda..a4604a97 100644
--- a/languages/python/doc/python.toc
+++ b/languages/python/doc/python.toc
@@ -162,7 +162,7 @@
<tocsect3 name="5.2 Atoms" url="ref/atoms.html">
<tocsect4 name="5.2.1 Identifiers (Names)" url="ref/atom-identifiers.html"/>
<tocsect4 name="5.2.2 Literals" url="ref/atom-literals.html"/>
-<tocsect4 name="5.2.3 Parenthesized forms" url="ref/parenthesized.html"/>
+<tocsect4 name="5.2.3 Parenthesized forms" url="ref/tqparenthesized.html"/>
<tocsect4 name="5.2.4 List displays" url="ref/lists.html"/>
<tocsect4 name="5.2.5 Dictionary displays" url="ref/dict.html"/>
<tocsect4 name="5.2.6 String conversions" url="ref/string-conversions.html"/>
@@ -293,7 +293,7 @@
</tocsect3>
<tocsect3 name="7.2 Sequence Objects " url="api/sequenceObjects.html">
<tocsect4 name="7.2.1 String Objects " url="api/stringObjects.html"/>
-<tocsect4 name="7.2.2 Unicode Objects " url="api/unicodeObjects.html"/>
+<tocsect4 name="7.2.2 Unicode Objects " url="api/tqunicodeObjects.html"/>
<tocsect4 name="7.2.3 Buffer Objects " url="api/bufferObjects.html"/>
<tocsect4 name="7.2.4 Tuple Objects " url="api/tupleObjects.html"/>
<tocsect4 name="7.2.5 List Objects " url="api/listObjects.html"/>
@@ -410,7 +410,7 @@
<tocsect3 name="4.7 codecs -- Codec registry and base classes" url="lib/module-codecs.html">
<tocsect4 name="4.7.1 Codec Base Classes" url="lib/node80.html"/>
</tocsect3>
-<tocsect3 name="4.8 unicodedata -- Unicode Database" url="lib/module-unicodedata.html"/>
+<tocsect3 name="4.8 tqunicodedata -- Unicode Database" url="lib/module-tqunicodedata.html"/>
</tocsect2>
<tocsect2 name="5. Miscellaneous Services" url="lib/misc.html">
<tocsect3 name="5.1 math -- Mathematical functions" url="lib/module-math.html"/>
@@ -1031,7 +1031,7 @@
<entry name="code, block" url="ref/execframes.html#l2h-238"/>
<entry name="code block" url="ref/execframes.html#l2h-232"/>
<entry name="code object" url="ref/types.html#l2h-124"/>
-<entry name="comma" url="ref/parenthesized.html#l2h-270"/>
+<entry name="comma" url="ref/tqparenthesized.html#l2h-270"/>
<entry name="trailing" url="ref/exprlists.html#l2h-331"/>
<entry name="command line" url="ref/programs.html#l2h-439"/>
<entry name="comment" url="ref/comments.html#l2h-6"/>
@@ -1077,7 +1077,7 @@
<entry name="dictionary object" url="ref/types.html#l2h-96"/>
<entry name="display, dictionary" url="ref/dict.html#l2h-274"/>
<entry name="display, list" url="ref/lists.html#l2h-271"/>
-<entry name="display, tuple" url="ref/parenthesized.html#l2h-270"/>
+<entry name="display, tuple" url="ref/tqparenthesized.html#l2h-270"/>
<entry name="division" url="ref/binary.html#l2h-309"/>
<entry name="divmod() (built-in function)" url="ref/numeric-types.html#l2h-218"/>
<entry name="documentation string" url="ref/types.html#l2h-125"/>
@@ -1362,7 +1362,7 @@
<entry name="string" url="ref/types.html#l2h-85"/>
<entry name="object (continued), traceback" url="ref/types.html#l2h-127"/>
<entry name="object (continued), tuple" url="ref/types.html#l2h-91"/>
-<entry name="object (continued), unicode" url="ref/types.html#l2h-90"/>
+<entry name="object (continued), tqunicode" url="ref/types.html#l2h-90"/>
<entry name="object (continued), user-defined function" url="ref/types.html#l2h-103"/>
<entry name="object (continued), user-defined method" url="ref/types.html#l2h-105"/>
<entry name="oct() (built-in function)" url="ref/numeric-types.html#l2h-229"/>
@@ -1394,7 +1394,7 @@
<entry name="OverflowError (built-in exception)" url="ref/types.html#l2h-33"/>
<entry name="packages" url="ref/import.html#l2h-392"/>
<entry name="parameter, value, default" url="ref/function.html#l2h-430"/>
-<entry name="parenthesized form" url="ref/parenthesized.html#l2h-268"/>
+<entry name="tqparenthesized form" url="ref/tqparenthesized.html#l2h-268"/>
<entry name="parser" url="ref/lexical.html#l2h-3"/>
<entry name="Pascal, language" url="ref/for.html#l2h-416"/>
<entry name="pass statement" url="ref/pass.html#l2h-355"/>
@@ -1527,7 +1527,7 @@
<entry name="trailing, comma" url="ref/exprlists.html#l2h-331"/>
<entry name="triple-quoted string" url="ref/strings.html#l2h-16"/>
<entry name="try statement" url="ref/types.html#l2h-129"/>
-<entry name="tuple, display" url="ref/parenthesized.html#l2h-270"/>
+<entry name="tuple, display" url="ref/tqparenthesized.html#l2h-270"/>
<entry name="tuple, empty" url="ref/types.html#l2h-91"/>
<entry name="tuple, singleton" url="ref/types.html#l2h-91"/>
<entry name="tuple object" url="ref/types.html#l2h-91"/>
@@ -1544,8 +1544,8 @@
<entry name="unbinding, name" url="ref/execframes.html#l2h-243"/>
<entry name="unichr() (built-in function)" url="ref/types.html#l2h-87"/>
<entry name="Unicode" url="ref/types.html#l2h-90"/>
-<entry name="unicode() (built-in function)" url="ref/types.html#l2h-89"/>
-<entry name="unicode object" url="ref/types.html#l2h-90"/>
+<entry name="tqunicode() (built-in function)" url="ref/types.html#l2h-89"/>
+<entry name="tqunicode object" url="ref/types.html#l2h-90"/>
<entry name="UNIX" url="ref/programs.html#l2h-439"/>
<entry name="unreachable object" url="ref/objects.html#l2h-28"/>
<entry name="unrecognized escape sequence" url="ref/strings.html#l2h-19"/>
diff --git a/languages/python/kde_pydoc.py b/languages/python/kde_pydoc.py
index 0516f172..eb7c6b44 100755
--- a/languages/python/kde_pydoc.py
+++ b/languages/python/kde_pydoc.py
@@ -7,7 +7,7 @@ __version__ = "6 April 2006"
import sys, imp, os, stat, re, types, cgi
from repr import Repr
-from string import expandtabs, find, join, lower, split, strip, rstrip
+from string import expandtabs, tqfind, join, lower, split, strip, rstrip
import pydoc
@@ -16,19 +16,19 @@ import pydoc
def cleanlinks(string):
"""Changes the links to work with the pydoc:-notation"""
finalstring = ""
- string = str(string).replace(".html","")
+ string = str(string).tqreplace(".html","")
pos = 0
mark = "<a href=\""
l = len(mark)
while(pos != -1):
opos = pos
- pos = string.find(mark, pos)
+ pos = string.tqfind(mark, pos)
if(pos == -1):
finalstring += string[opos:]
break
finalstring += string[opos:pos+l]
pos+=l
- if(string[pos] == '#' or string.find(":/",pos, pos+10) != -1): #leave local jumps or external references untouched
+ if(string[pos] == '#' or string.tqfind(":/",pos, pos+10) != -1): #leave local jumps or external references untouched
continue
finalstring += "pydoc:"
if(string[pos] == "." and string[pos+1] == "\""):
diff --git a/languages/python/pythonconfigwidget.cpp b/languages/python/pythonconfigwidget.cpp
index 29103705..6cd54700 100644
--- a/languages/python/pythonconfigwidget.cpp
+++ b/languages/python/pythonconfigwidget.cpp
@@ -17,8 +17,8 @@
PythonConfigWidget::PythonConfigWidget(TQDomDocument &projectDom,
- TQWidget *parent, const char *name)
- : PythonConfigWidgetBase(parent, name), dom(projectDom)
+ TQWidget *tqparent, const char *name)
+ : PythonConfigWidgetBase(tqparent, name), dom(projectDom)
{
interpreter_edit->setText(DomUtil::readEntry(dom, "/kdevpythonsupport/run/interpreter"));
terminal_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevpythonsupport/run/terminal"));
diff --git a/languages/python/pythonconfigwidget.h b/languages/python/pythonconfigwidget.h
index 674b8e3c..16ed799d 100644
--- a/languages/python/pythonconfigwidget.h
+++ b/languages/python/pythonconfigwidget.h
@@ -19,9 +19,10 @@
class PythonConfigWidget : public PythonConfigWidgetBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- PythonConfigWidget( TQDomDocument &projectDom, TQWidget *parent=0, const char *name=0 );
+ PythonConfigWidget( TQDomDocument &projectDom, TQWidget *tqparent=0, const char *name=0 );
~PythonConfigWidget();
public slots:
diff --git a/languages/python/pythonconfigwidgetbase.ui b/languages/python/pythonconfigwidgetbase.ui
index d3228822..0aa9a5bd 100644
--- a/languages/python/pythonconfigwidgetbase.ui
+++ b/languages/python/pythonconfigwidgetbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>PythonConfigWidgetBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>python_config_widget</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>interpreter_label</cstring>
</property>
@@ -30,7 +30,7 @@
<cstring>interpreter_edit</cstring>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout1</cstring>
</property>
@@ -57,7 +57,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -76,14 +76,14 @@
<property name="sizeType">
<enum>Minimum</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>terminal_box</cstring>
</property>
@@ -101,7 +101,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -113,8 +113,8 @@
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includehints>
<includehint>klineedit.h</includehint>
</includehints>
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;
diff --git a/languages/python/pythonimplementationwidget.h b/languages/python/pythonimplementationwidget.h
index e8838bab..c2ca5cc3 100644
--- a/languages/python/pythonimplementationwidget.h
+++ b/languages/python/pythonimplementationwidget.h
@@ -25,8 +25,9 @@
class PythonImplementationWidget : public ImplementationWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- PythonImplementationWidget(KDevLanguageSupport* part, TQWidget* parent = 0, const char* name = 0, bool modal = true);
+ PythonImplementationWidget(KDevLanguageSupport* part, TQWidget* tqparent = 0, const char* name = 0, bool modal = true);
~PythonImplementationWidget();
diff --git a/languages/python/pythonsupportpart.cpp b/languages/python/pythonsupportpart.cpp
index dc7df754..d1f2e503 100644
--- a/languages/python/pythonsupportpart.cpp
+++ b/languages/python/pythonsupportpart.cpp
@@ -42,8 +42,8 @@ typedef KDevGenericFactory<PythonSupportPart> PythonSupportFactory;
static const KDevPluginInfo data("kdevpythonsupport");
K_EXPORT_COMPONENT_FACTORY( libkdevpythonsupport, PythonSupportFactory( data ) )
-PythonSupportPart::PythonSupportPart(TQObject *parent, const char *name, const TQStringList &)
- : KDevLanguageSupport(&data, parent, name ? name : "PythonSupportPart")
+PythonSupportPart::PythonSupportPart(TQObject *tqparent, const char *name, const TQStringList &)
+ : KDevLanguageSupport(&data, tqparent, name ? name : "PythonSupportPart")
{
setInstance(PythonSupportFactory::instance());
@@ -100,7 +100,7 @@ void PythonSupportPart::contextMenu(TQPopupMenu *popup, const Context *context)
{
m_contextFileName = url.fileName();
int id = popup->insertItem(i18n("Create or Select Implementation..."), this, TQT_SLOT(slotCreateSubclass()));
- popup->setWhatsThis(id, i18n("<b>Create or select implementation</b><p>Creates or selects a subclass of selected form for use with integrated KDevDesigner."));
+ popup->tqsetWhatsThis(id, i18n("<b>Create or select implementation</b><p>Creates or selects a subclass of selected form for use with integrated KDevDesigner."));
}
}
}
@@ -210,7 +210,7 @@ void PythonSupportPart::savedFile(const KURL &fileName)
{
kdDebug(9014) << "savedFile()" << endl;
- if (project()->allFiles().contains(fileName.path().mid ( project()->projectDirectory().length() + 1 ))) {
+ if (project()->allFiles().tqcontains(fileName.path().mid ( project()->projectDirectory().length() + 1 ))) {
maybeParse(fileName.path());
emit addedSourceInfo( fileName.path() );
}
@@ -264,11 +264,11 @@ void PythonSupportPart::parse(const TQString &fileName)
lastClass->setFileName( fileName );
lastClass->setStartPosition( lineNo, 0 );
- TQStringList parentList = TQStringList::split(",", classre.cap(3));
+ TQStringList tqparentList = TQStringList::split(",", classre.cap(3));
TQStringList::ConstIterator it;
- for (it = parentList.begin(); it != parentList.end(); ++it) {
+ for (it = tqparentList.begin(); it != tqparentList.end(); ++it) {
TQString baseName = (*it).stripWhiteSpace();
- kdDebug(9014) << "Add parent" << baseName << endl;
+ kdDebug(9014) << "Add tqparent" << baseName << endl;
lastClass->addBaseClass( baseName );
}
@@ -349,7 +349,7 @@ void PythonSupportPart::slotStartInterpreter()
void PythonSupportPart::slotExecuteString()
{
bool ok;
- TQString cmd = KInputDialog::getText(i18n("String to Execute"), i18n("String to execute:"), TQString::null, &ok, 0);
+ TQString cmd = KInputDialog::getText(i18n("String to Execute"), i18n("String to execute:"), TQString(), &ok, 0);
if (ok) {
cmd.prepend("'");
cmd.append("'");
@@ -374,12 +374,12 @@ KDevDesignerIntegration *PythonSupportPart::designer(KInterfaceDesigner::Designe
KDevDesignerIntegration *des = 0;
switch (type)
{
- case KInterfaceDesigner::QtDesigner:
+ case KInterfaceDesigner::TQtDesigner:
des = m_designers[type];
if (des == 0)
{
PythonImplementationWidget *impl = new PythonImplementationWidget(this);
- des = new QtDesignerPythonIntegration(this, impl);
+ des = new TQtDesignerPythonIntegration(this, impl);
des->loadSettings(*project()->projectDom(),
"kdevpythonsupport/designerintegration");
m_designers[type] = des;
@@ -398,7 +398,7 @@ void PythonSupportPart::slotCreateSubclass()
kdDebug(9014) << k_funcinfo << " file: " << m_contextFileName << " ext: " << fi.extension(false) << endl;
if (fi.extension(false) != "ui")
return;
- QtDesignerPythonIntegration *des = dynamic_cast<QtDesignerPythonIntegration*>(designer(KInterfaceDesigner::QtDesigner));
+ TQtDesignerPythonIntegration *des = dynamic_cast<TQtDesignerPythonIntegration*>(designer(KInterfaceDesigner::TQtDesigner));
if (des)
{
kdDebug(9014) << "ok: " << des << endl;
diff --git a/languages/python/pythonsupportpart.h b/languages/python/pythonsupportpart.h
index 0ea9f1b5..01fde048 100644
--- a/languages/python/pythonsupportpart.h
+++ b/languages/python/pythonsupportpart.h
@@ -23,9 +23,10 @@ class Context;
class PythonSupportPart : public KDevLanguageSupport
{
Q_OBJECT
+ TQ_OBJECT
public:
- PythonSupportPart( TQObject *parent, const char *name, const TQStringList & );
+ PythonSupportPart( TQObject *tqparent, const char *name, const TQStringList & );
~PythonSupportPart();
virtual KDevDesignerIntegration *designer(KInterfaceDesigner::DesignerType type);
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<KTextEditor::EditInterface*>( m_part->partController()->activePart() );
@@ -65,7 +65,7 @@ void QtDesignerPythonIntegration::addFunctionToClass(KInterfaceDesigner::Functio
klass->getStartPosition( &line, &column );
// compute the insertion point
- QPair<int,int> point;
+ TQPair<int,int> 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;
diff --git a/languages/python/qtdesignerpythonintegration.h b/languages/python/qtdesignerpythonintegration.h
index e4b3bcae..8af2f271 100644
--- a/languages/python/qtdesignerpythonintegration.h
+++ b/languages/python/qtdesignerpythonintegration.h
@@ -17,18 +17,19 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#ifndef QTDESIGNERPYTHONINTEGRATION_H
-#define QTDESIGNERPYTHONINTEGRATION_H
+#ifndef TQTDESIGNERPYTHONINTEGRATION_H
+#define TQTDESIGNERPYTHONINTEGRATION_H
#include <qtdesignerintegration.h>
-class QtDesignerPythonIntegration : public QtDesignerIntegration
+class TQtDesignerPythonIntegration : public TQtDesignerIntegration
{
Q_OBJECT
+ TQ_OBJECT
public:
- QtDesignerPythonIntegration(KDevLanguageSupport* part, ImplementationWidget* impl);
+ TQtDesignerPythonIntegration(KDevLanguageSupport* part, ImplementationWidget* impl);
- ~QtDesignerPythonIntegration();
+ ~TQtDesignerPythonIntegration();
virtual void addFunctionToClass(KInterfaceDesigner::Function function, ClassDom klass);