summaryrefslogtreecommitdiffstats
path: root/languages/lib/designer_integration/qtdesignerintegration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/lib/designer_integration/qtdesignerintegration.cpp')
-rw-r--r--languages/lib/designer_integration/qtdesignerintegration.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/languages/lib/designer_integration/qtdesignerintegration.cpp b/languages/lib/designer_integration/qtdesignerintegration.cpp
index f66b1b61..f46bd422 100644
--- a/languages/lib/designer_integration/qtdesignerintegration.cpp
+++ b/languages/lib/designer_integration/qtdesignerintegration.cpp
@@ -38,48 +38,48 @@
#include "codemodel_utils.h"
#include "implementationwidget.h"
-QtDesignerIntegration::QtDesignerIntegration(KDevLanguageSupport *part, ImplementationWidget *impl, bool classHasDefinitions, const char* name)
+TQtDesignerIntegration::TQtDesignerIntegration(KDevLanguageSupport *part, ImplementationWidget *impl, bool classHasDefinitions, const char* name)
:KDevDesignerIntegration(part, name), m_part(part), m_impl(impl),
m_classHasDefinitions(classHasDefinitions)
{
}
-QtDesignerIntegration::~QtDesignerIntegration()
+TQtDesignerIntegration::~TQtDesignerIntegration()
{
delete m_impl;
}
-void QtDesignerIntegration::addFunction(const TQString& formName, KInterfaceDesigner::Function function)
+void TQtDesignerIntegration::addFunction(const TQString& formName, KInterfaceDesigner::Function function)
{
- kdDebug() << "QtDesignerIntegration::addFunction: form: " << formName << ", function: " << function.function << endl;
+ kdDebug() << "TQtDesignerIntegration::addFunction: form: " << formName << ", function: " << function.function << endl;
- if (!m_implementations.contains(formName))
+ if (!m_implementations.tqcontains(formName))
if (!selectImplementation(formName))
return;
ClassDom klass = m_implementations[formName];
if (!klass)
{
- KMessageBox::error(0, i18n("Cannot find implementation class for form: %1").arg(formName));
+ KMessageBox::error(0, i18n("Cannot find implementation class for form: %1").tqarg(formName));
return;
}
addFunctionToClass(function, klass);
}
-void QtDesignerIntegration::editFunction(const TQString& formName, KInterfaceDesigner::Function oldFunction, KInterfaceDesigner::Function function)
+void TQtDesignerIntegration::editFunction(const TQString& formName, KInterfaceDesigner::Function oldFunction, KInterfaceDesigner::Function function)
{
- kdDebug() << "QtDesignerIntegration::editFunction: form: " << formName
+ kdDebug() << "TQtDesignerIntegration::editFunction: form: " << formName
<< ", old function: " << oldFunction.function
<< ", function: " << function.function << endl;
}
-void QtDesignerIntegration::removeFunction(const TQString& formName, KInterfaceDesigner::Function function)
+void TQtDesignerIntegration::removeFunction(const TQString& formName, KInterfaceDesigner::Function function)
{
- kdDebug() << "QtDesignerIntegration::removeFunction: form: " << formName << ", function: " << function.function << endl;
+ kdDebug() << "TQtDesignerIntegration::removeFunction: form: " << formName << ", function: " << function.function << endl;
}
-bool QtDesignerIntegration::selectImplementation(const TQString &formName)
+bool TQtDesignerIntegration::selectImplementation(const TQString &formName)
{
TQFileInfo fi(formName);
if (!fi.exists())
@@ -93,7 +93,7 @@ bool QtDesignerIntegration::selectImplementation(const TQString &formName)
return false;
}
-void QtDesignerIntegration::loadSettings(TQDomDocument dom, TQString path)
+void TQtDesignerIntegration::loadSettings(TQDomDocument dom, TQString path)
{
TQDomElement el = DomUtil::elementByPath(dom, path + "/qtdesigner");
if (el.isNull())
@@ -117,9 +117,9 @@ void QtDesignerIntegration::loadSettings(TQDomDocument dom, TQString path)
}
}
-void QtDesignerIntegration::saveSettings(TQDomDocument dom, TQString path)
+void TQtDesignerIntegration::saveSettings(TQDomDocument dom, TQString path)
{
- kdDebug() << "QtDesignerIntegration::saveSettings" << endl;
+ kdDebug() << "TQtDesignerIntegration::saveSettings" << endl;
TQDomElement el = DomUtil::createElementByPath(dom, path + "/qtdesigner");
for (TQMap<TQString, ClassDom>::const_iterator it = m_implementations.begin();
it != m_implementations.end(); ++it)
@@ -134,13 +134,13 @@ void QtDesignerIntegration::saveSettings(TQDomDocument dom, TQString path)
}
}
-void QtDesignerIntegration::openFunction(const TQString &formName, const TQString &functionName)
+void TQtDesignerIntegration::openFunction(const TQString &formName, const TQString &functionName)
{
- kdDebug() << "QtDesignerIntegration::openFunction, formName = " << formName
+ kdDebug() << "TQtDesignerIntegration::openFunction, formName = " << formName
<< ", functionName = " << functionName << endl;
TQString fn = functionName;
- if (fn.find("(") > 0)
- fn.remove(fn.find("("), fn.length());
+ if (fn.tqfind("(") > 0)
+ fn.remove(fn.tqfind("("), fn.length());
if (!m_implementations[formName])
return;
@@ -177,14 +177,14 @@ void QtDesignerIntegration::openFunction(const TQString &formName, const TQStrin
m_part->partController()->editDocument(KURL(impl), line, col);
}
-void QtDesignerIntegration::processImplementationName(TQString &// name
+void TQtDesignerIntegration::processImplementationName(TQString &// name
)
{
}
-void QtDesignerIntegration::openSource(const TQString &formName)
+void TQtDesignerIntegration::openSource(const TQString &formName)
{
- if (!m_implementations.contains(formName))
+ if (!m_implementations.tqcontains(formName))
if (!selectImplementation(formName))
return;
TQString impl = m_implementations[formName]->fileName();