summaryrefslogtreecommitdiffstats
path: root/quanta/components/debugger/debuggermanager.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/components/debugger/debuggermanager.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/components/debugger/debuggermanager.cpp')
-rw-r--r--quanta/components/debugger/debuggermanager.cpp142
1 files changed, 71 insertions, 71 deletions
diff --git a/quanta/components/debugger/debuggermanager.cpp b/quanta/components/debugger/debuggermanager.cpp
index bbc6336c..4c5aaa58 100644
--- a/quanta/components/debugger/debuggermanager.cpp
+++ b/quanta/components/debugger/debuggermanager.cpp
@@ -26,7 +26,7 @@
#include <kmessagebox.h>
#include <qextfileinfo.h>
#include <kinputdialog.h>
-#include <qlineedit.h>
+#include <tqlineedit.h>
#include "quanta.h"
#include "document.h"
@@ -49,8 +49,8 @@
// dialogs
#include "debuggervariablesets.h"
-DebuggerManager::DebuggerManager(QObject *myparent)
- : QObject(myparent)
+DebuggerManager::DebuggerManager(TQObject *myparent)
+ : TQObject(myparent)
{
initActions();
@@ -62,12 +62,12 @@ DebuggerManager::DebuggerManager(QObject *myparent)
m_client = NULL;
}
-void DebuggerManager::slotNewProjectLoaded(const QString &projectname, const KURL &, const KURL &)
+void DebuggerManager::slotNewProjectLoaded(const TQString &projectname, const KURL &, const KURL &)
{
if(m_client)
{
- disconnect(m_client, SIGNAL(updateStatus(DebuggerUI::DebuggerStatus)), m_debuggerui, SLOT(slotStatus(DebuggerUI::DebuggerStatus)));
+ disconnect(m_client, TQT_SIGNAL(updateStatus(DebuggerUI::DebuggerStatus)), m_debuggerui, TQT_SLOT(slotStatus(DebuggerUI::DebuggerStatus)));
delete m_client;
m_client = NULL;
@@ -98,8 +98,8 @@ void DebuggerManager::slotNewProjectLoaded(const QString &projectname, const KUR
int errCode = 0;
//Workaround for dynamic_cast not working correctly on SUSE 10, gcc 4.0.2
//The correct way should be a simple:
-// m_client = KParts::ComponentFactory::createInstanceFromService<DebuggerClient>(service, this, 0, QStringList(), &errCode);
- QObject* obj = KParts::ComponentFactory::createInstanceFromService<QObject>(service, this, 0, QStringList(), &errCode);
+// m_client = KParts::ComponentFactory::createInstanceFromService<DebuggerClient>(service, this, 0, TQStringList(), &errCode);
+ TQObject* obj = KParts::ComponentFactory::createInstanceFromService<TQObject>(service, this, 0, TQStringList(), &errCode);
if (obj && obj->inherits("DebuggerClient"))
m_client = static_cast<DebuggerClient *>(obj);
@@ -118,10 +118,10 @@ void DebuggerManager::slotNewProjectLoaded(const QString &projectname, const KUR
// Tell client to load its settings
if (m_client)
{
- QDomNode nodeThisDbg;
- QDomDocument *dom = Project::ref()->sessionDom();
- QDomNode projectNode = dom->firstChild().firstChild();
- QDomNode nodeDbg = projectNode.namedItem("debuggers");
+ TQDomNode nodeThisDbg;
+ TQDomDocument *dom = Project::ref()->sessionDom();
+ TQDomNode projectNode = dom->firstChild().firstChild();
+ TQDomNode nodeDbg = projectNode.namedItem("debuggers");
if(nodeDbg.isNull())
{
nodeDbg = dom->createElement("debuggers");
@@ -143,15 +143,15 @@ void DebuggerManager::slotNewProjectLoaded(const QString &projectname, const KUR
// recreate UI
m_debuggerui = new DebuggerUI(this, "debuggerui");
- connect(m_client, SIGNAL(updateStatus(DebuggerUI::DebuggerStatus)), m_debuggerui, SLOT(slotStatus(DebuggerUI::DebuggerStatus)));
+ connect(m_client, TQT_SIGNAL(updateStatus(DebuggerUI::DebuggerStatus)), m_debuggerui, TQT_SLOT(slotStatus(DebuggerUI::DebuggerStatus)));
// Load saved breakpoints
if(Project::ref()->debuggerPersistentBreakpoints())
{
- QDomNode nodeBreakpoints = nodeDbg.namedItem("breakpoints");
+ TQDomNode nodeBreakpoints = nodeDbg.namedItem("breakpoints");
if(!nodeBreakpoints.isNull())
{
- QDomNode child = nodeBreakpoints.firstChild();
+ TQDomNode child = nodeBreakpoints.firstChild();
while(!child.isNull())
{
DebuggerBreakpoint* bp = new DebuggerBreakpoint();
@@ -180,13 +180,13 @@ void DebuggerManager::slotNewProjectLoaded(const QString &projectname, const KUR
// Load saved Watches
if(Project::ref()->debuggerPersistentWatches())
{
- QDomNode nodeWatches = nodeDbg.namedItem("watches");
+ TQDomNode nodeWatches = nodeDbg.namedItem("watches");
if(!nodeWatches.isNull())
{
- QDomNode child = nodeWatches.firstChild();
+ TQDomNode child = nodeWatches.firstChild();
while(!child.isNull())
{
- QString watch = child.attributes().namedItem("name").nodeValue();
+ TQString watch = child.attributes().namedItem("name").nodeValue();
DebuggerVariable *var = new DebuggerVariable(watch, "", DebuggerVariableTypes::Undefined);
m_debuggerui->addVariable(var);
m_client->addWatch(watch);
@@ -212,65 +212,65 @@ void DebuggerManager::initActions()
return;
//Debugger, breakpoint
- newaction = new KAction(i18n("Toggle &Breakpoint"), SmallIcon("debug_breakpoint"), Qt::CTRL+Qt::SHIFT+Qt::Key_B, this, SLOT(toggleBreakpoint()), ac, "debug_breakpoints_toggle");
+ newaction = new KAction(i18n("Toggle &Breakpoint"), SmallIcon("debug_breakpoint"), Qt::CTRL+Qt::SHIFT+Qt::Key_B, this, TQT_SLOT(toggleBreakpoint()), ac, "debug_breakpoints_toggle");
newaction->setToolTip(i18n("Toggles a breakpoint at the current cursor location"));
- newaction = new KAction(i18n("&Clear Breakpoints"), 0, this, SLOT(clearBreakpoints()), ac, "debug_breakpoints_clear");
+ newaction = new KAction(i18n("&Clear Breakpoints"), 0, this, TQT_SLOT(clearBreakpoints()), ac, "debug_breakpoints_clear");
newaction->setToolTip(i18n("Clears all breakpoints"));
- newaction = new KAction(i18n("Break When..."), SmallIcon("math_int"), 0, this, SLOT(slotConditionalBreakpoint()), ac, "debug_conditional_break");
+ newaction = new KAction(i18n("Break When..."), SmallIcon("math_int"), 0, this, TQT_SLOT(slotConditionalBreakpoint()), ac, "debug_conditional_break");
newaction->setToolTip(i18n("Adds a new conditional breakpoint"));
- newaction = new KAction(i18n("Break When..."), SmallIcon("math_int"), 0, this, SLOT(slotConditionalBreakpoint()), ac, "debug_conditional_breakdialog");
+ newaction = new KAction(i18n("Break When..."), SmallIcon("math_int"), 0, this, TQT_SLOT(slotConditionalBreakpoint()), ac, "debug_conditional_breakdialog");
newaction->setToolTip(i18n("Adds a new conditional breakpoint"));
// Execution
- newaction = new KAction(i18n("Send HTTP R&equest"), SmallIcon("debug_currentline"), 0, this, SLOT(slotDebugRequest()), ac, "debug_request");
+ newaction = new KAction(i18n("Send HTTP R&equest"), SmallIcon("debug_currentline"), 0, this, TQT_SLOT(slotDebugRequest()), ac, "debug_request");
newaction->setToolTip(i18n("Initiate HTTP Request to the server with debugging activated"));
- newaction = new KAction(i18n("&Trace"), SmallIcon("debug_run"), 0, this, SLOT(slotDebugTrace()), ac, "debug_trace");
+ newaction = new KAction(i18n("&Trace"), SmallIcon("debug_run"), 0, this, TQT_SLOT(slotDebugTrace()), ac, "debug_trace");
newaction->setToolTip(i18n("Traces through the script. If a script is currently not being debugged, it will start in trace mode when started"));
- newaction = new KAction(i18n("&Run"), SmallIcon("debug_leap"), 0, this, SLOT(slotDebugRun()), ac, "debug_run");
+ newaction = new KAction(i18n("&Run"), SmallIcon("debug_leap"), 0, this, TQT_SLOT(slotDebugRun()), ac, "debug_run");
newaction->setToolTip(i18n("Runs the script. If a script is currently not being debugged, it will start in run mode when started"));
- newaction = new KAction(i18n("&Step"), SmallIcon("debug_stepover"), 0, this, SLOT(slotDebugStepOver()), ac, "debug_stepover");
+ newaction = new KAction(i18n("&Step"), SmallIcon("debug_stepover"), 0, this, TQT_SLOT(slotDebugStepOver()), ac, "debug_stepover");
newaction->setToolTip(i18n("Executes the next line of execution, but does not step into functions or includes"));
- newaction = new KAction(i18n("Step &Into"), SmallIcon("debug_stepinto"), 0, this, SLOT(slotDebugStepInto()), ac, "debug_stepinto");
+ newaction = new KAction(i18n("Step &Into"), SmallIcon("debug_stepinto"), 0, this, TQT_SLOT(slotDebugStepInto()), ac, "debug_stepinto");
newaction->setToolTip(i18n("Executes the next line of execution and steps into it if it is a function call or inclusion of a file"));
- newaction = new KAction(i18n("S&kip"), SmallIcon("debug_skip"), 0, this, SLOT(slotDebugSkip()), ac, "debug_skip");
+ newaction = new KAction(i18n("S&kip"), SmallIcon("debug_skip"), 0, this, TQT_SLOT(slotDebugSkip()), ac, "debug_skip");
newaction->setToolTip(i18n("Skips the next command of execution and makes the next command the current one"));
- newaction = new KAction(i18n("Step &Out"), SmallIcon("debug_stepout"), 0, this, SLOT(slotDebugStepOut()), ac, "debug_stepout");
+ newaction = new KAction(i18n("Step &Out"), SmallIcon("debug_stepout"), 0, this, TQT_SLOT(slotDebugStepOut()), ac, "debug_stepout");
newaction->setToolTip(i18n("Executes the rest of the commands in the current function/file and pauses when it is done (when it reaches a higher level in the backtrace)"));
- newaction = new KAction(i18n("&Pause"), SmallIcon("debug_pause"), 0, this, SLOT(slotDebugPause()), ac, "debug_pause");
+ newaction = new KAction(i18n("&Pause"), SmallIcon("debug_pause"), 0, this, TQT_SLOT(slotDebugPause()), ac, "debug_pause");
newaction->setToolTip(i18n("Pauses the scripts if it is running or tracing. If a script is currently not being debugged, it will start in paused mode when started"));
- newaction = new KAction(i18n("Kill"), SmallIcon("debug_kill"), 0, this, SLOT(slotDebugKill()), ac, "debug_kill");
+ newaction = new KAction(i18n("Kill"), SmallIcon("debug_kill"), 0, this, TQT_SLOT(slotDebugKill()), ac, "debug_kill");
newaction->setToolTip(i18n("Kills the currently running script"));
- newaction = new KAction(i18n("Start Session"), SmallIcon("debug_connect"), 0, this, SLOT(slotDebugStartSession()), ac, "debug_connect");
+ newaction = new KAction(i18n("Start Session"), SmallIcon("debug_connect"), 0, this, TQT_SLOT(slotDebugStartSession()), ac, "debug_connect");
newaction->setToolTip(i18n("Starts the debugger internally (Makes debugging possible)"));
- newaction = new KAction(i18n("End Session"), SmallIcon("debug_disconnect"), 0, this, SLOT(slotDebugEndSession()), ac, "debug_disconnect");
+ newaction = new KAction(i18n("End Session"), SmallIcon("debug_disconnect"), 0, this, TQT_SLOT(slotDebugEndSession()), ac, "debug_disconnect");
newaction->setToolTip(i18n("Stops the debugger internally (debugging not longer possible)"));
// Variables
- newaction = new KAction(i18n("Watch Variable"), SmallIcon("math_brace"), 0, this, SLOT(slotAddWatch()), ac, "debug_addwatch");
+ newaction = new KAction(i18n("Watch Variable"), SmallIcon("math_brace"), 0, this, TQT_SLOT(slotAddWatch()), ac, "debug_addwatch");
newaction->setToolTip(i18n("Adds a variable to the watch list"));
- newaction = new KAction(i18n("Watch Variable"), SmallIcon("math_brace"), 0, this, SLOT(slotAddWatch()), ac, "debug_addwatchdialog");
+ newaction = new KAction(i18n("Watch Variable"), SmallIcon("math_brace"), 0, this, TQT_SLOT(slotAddWatch()), ac, "debug_addwatchdialog");
newaction->setToolTip(i18n("Adds a variable to the watch list"));
- newaction = new KAction(i18n("Set Value of Variable"), SmallIcon("edit"), 0, this, SLOT(slotVariableSet()), ac, "debug_variable_set");
+ newaction = new KAction(i18n("Set Value of Variable"), SmallIcon("edit"), 0, this, TQT_SLOT(slotVariableSet()), ac, "debug_variable_set");
newaction->setToolTip(i18n("Changes the value of a variable"));
- newaction = new KAction(i18n("Set Value of Variable"), SmallIcon("edit"), 0, this, SLOT(slotVariableSet()), ac, "debug_variable_setdialog");
+ newaction = new KAction(i18n("Set Value of Variable"), SmallIcon("edit"), 0, this, TQT_SLOT(slotVariableSet()), ac, "debug_variable_setdialog");
newaction->setToolTip(i18n("Changes the value of a variable"));
- newaction = new KAction(i18n("Open Profiler Output"), SmallIcon("launch"), 0, this, SLOT(slotProfilerOpen()), ac, "debug_profiler_open");
+ newaction = new KAction(i18n("Open Profiler Output"), SmallIcon("launch"), 0, this, TQT_SLOT(slotProfilerOpen()), ac, "debug_profiler_open");
newaction->setToolTip(i18n("Opens the profiler output file"));
enableAction("*", false);
@@ -299,7 +299,7 @@ DebuggerManager::~DebuggerManager()
if(m_client)
{
- disconnect(m_client, SIGNAL(updateStatus(DebuggerUI::DebuggerStatus)), m_debuggerui, SLOT(slotStatus(DebuggerUI::DebuggerStatus)));
+ disconnect(m_client, TQT_SIGNAL(updateStatus(DebuggerUI::DebuggerStatus)), m_debuggerui, TQT_SLOT(slotStatus(DebuggerUI::DebuggerStatus)));
delete m_client;
m_client = 0L;
@@ -313,7 +313,7 @@ DebuggerManager::~DebuggerManager()
m_pathmapper = 0L;
}
-void DebuggerManager::enableAction(const QString& action, bool enable)
+void DebuggerManager::enableAction(const TQString& action, bool enable)
{
if(action == "*")
{
@@ -372,7 +372,7 @@ void DebuggerManager::slotAddWatch()
return;
- QString watch = KInputDialog::getText(i18n("Add Watch"), i18n("Specify variable to watch:"), quantaApp->popupWord);
+ TQString watch = KInputDialog::getText(i18n("Add Watch"), i18n("Specify variable to watch:"), quantaApp->popupWord);
quantaApp->popupWord = "";
if(!watch.isEmpty())
{
@@ -392,7 +392,7 @@ void DebuggerManager::slotVariableSet()
DebuggerVariableSetS dlg;
dlg.lineVariable->setText(quantaApp->popupWord);
quantaApp->popupWord = "";
- if(dlg.exec() == QDialog::Accepted)
+ if(dlg.exec() == TQDialog::Accepted)
{
DebuggerVariable var;
var.setName(dlg.lineVariable->text());
@@ -403,7 +403,7 @@ void DebuggerManager::slotVariableSet()
void DebuggerManager::slotConditionalBreakpoint()
{
- QString file;
+ TQString file;
kdDebug(24002) << "DebuggerManager::slotConditionalBreakpoint() " << quantaApp->popupWord << endl;
if(!m_client)
@@ -415,7 +415,7 @@ void DebuggerManager::slotConditionalBreakpoint()
ConditionalBreakpointDialog dlg(quantaApp->popupWord, file, "", "");
quantaApp->popupWord = "";
- if(dlg.exec() == QDialog::Accepted)
+ if(dlg.exec() == TQDialog::Accepted)
{
DebuggerBreakpoint * bp = dlg.breakpoint();
if(bp)
@@ -524,7 +524,7 @@ void DebuggerManager::slotProfilerOpen( )
}
// A new file was opened, tell the debugger so it can tell us about breakpoints etc
-void DebuggerManager::fileOpened(const QString& file)
+void DebuggerManager::fileOpened(const TQString& file)
{
// Set breakpoint markers if we have a bp in the file
@@ -569,13 +569,13 @@ void DebuggerManager::refreshBreakpoints()
// The debug server told us we have a breakpoint, mark it in the file
-void DebuggerManager::haveBreakpoint (const QString& file, int line)
+void DebuggerManager::haveBreakpoint (const TQString& file, int line)
{
setMark(file, line, true, KTextEditor::MarkInterface::markType02);
}
// The debug server told us we DONT have a breakpoint, remove it
-void DebuggerManager::havenoBreakpoint (const QString& file, int line)
+void DebuggerManager::havenoBreakpoint (const TQString& file, int line)
{
DebuggerBreakpoint* br = new DebuggerBreakpoint(file, line);
m_breakpointList->remove(br);
@@ -584,10 +584,10 @@ void DebuggerManager::havenoBreakpoint (const QString& file, int line)
}
// New current line
-bool DebuggerManager::setActiveLine (const QString& file, int line )
+bool DebuggerManager::setActiveLine (const TQString& file, int line )
{
//Get local filename
- QString filename = file;
+ TQString filename = file;
// Remove old active line mark
setMark(m_currentFile, m_currentLine, false, KTextEditor::MarkInterface::markType05);
@@ -614,7 +614,7 @@ bool DebuggerManager::setActiveLine (const QString& file, int line )
}
// Set/clear a mark in a document
-void DebuggerManager::setMark(const QString& filename, long line, bool set, int mark)
+void DebuggerManager::setMark(const TQString& filename, long line, bool set, int mark)
{
if((!filename.isEmpty()) && ViewManager::ref()->isOpened(filename))
{
@@ -642,26 +642,26 @@ void DebuggerManager::setMark(const QString& filename, long line, bool set, int
void DebuggerManager::connectBreakpointSignals(Document* qdoc)
{
- connect(qdoc, SIGNAL(breakpointMarked(Document*, int)),
- this, SLOT(slotBreakpointMarked(Document*, int)));
+ connect(qdoc, TQT_SIGNAL(breakpointMarked(Document*, int)),
+ this, TQT_SLOT(slotBreakpointMarked(Document*, int)));
- connect(qdoc, SIGNAL(breakpointUnmarked(Document*, int)),
- this, SLOT(slotBreakpointUnmarked(Document*, int)));
+ connect(qdoc, TQT_SIGNAL(breakpointUnmarked(Document*, int)),
+ this, TQT_SLOT(slotBreakpointUnmarked(Document*, int)));
}
void DebuggerManager::disconnectBreakpointSignals(Document* qdoc)
{
- disconnect(qdoc, SIGNAL(breakpointMarked(Document*, int)),
- this, SLOT(slotBreakpointMarked(Document*, int)));
+ disconnect(qdoc, TQT_SIGNAL(breakpointMarked(Document*, int)),
+ this, TQT_SLOT(slotBreakpointMarked(Document*, int)));
- disconnect(qdoc, SIGNAL(breakpointUnmarked(Document*, int)),
- this, SLOT(slotBreakpointUnmarked(Document*, int)));
+ disconnect(qdoc, TQT_SIGNAL(breakpointUnmarked(Document*, int)),
+ this, TQT_SLOT(slotBreakpointUnmarked(Document*, int)));
}
// Show a status message and optionally put it on the log
-bool DebuggerManager::showStatus(const QString& a_message, bool log)
+bool DebuggerManager::showStatus(const TQString& a_message, bool log)
{
- QString message = a_message;
+ TQString message = a_message;
quantaApp->slotStatusMsg(m_client->getName() + ": " + message);
if(log)
@@ -729,7 +729,7 @@ void DebuggerManager::slotBreakpointMarked(Document* qdoc, int line)
void DebuggerManager::slotBreakpointUnmarked(Document* qdoc, int line)
{
- QString filePath = qdoc->url().prettyURL(0, KURL::StripFileProtocol);
+ TQString filePath = qdoc->url().prettyURL(0, KURL::StripFileProtocol);
DebuggerBreakpoint* br = m_breakpointList->retrieve(filePath, line);
@@ -744,7 +744,7 @@ void DebuggerManager::slotBreakpointUnmarked(Document* qdoc, int line)
}
}
-void DebuggerManager::updateBreakpointKey( const DebuggerBreakpoint & bp, const QString & newkey )
+void DebuggerManager::updateBreakpointKey( const DebuggerBreakpoint & bp, const TQString & newkey )
{
m_breakpointList->updateBreakpointKey(bp, newkey);
@@ -756,7 +756,7 @@ void DebuggerManager::updateBreakpointKey( const DebuggerBreakpoint & bp, const
}
-DebuggerBreakpoint * DebuggerManager::findDebuggerBreakpoint( const QString & key )
+DebuggerBreakpoint * DebuggerManager::findDebuggerBreakpoint( const TQString & key )
{
return m_breakpointList->findDebuggerBreakpoint(key);
}
@@ -766,9 +766,9 @@ void DebuggerManager::saveProperties( )
if (m_client)
{
- QDomDocument *dom = Project::ref()->sessionDom();
- QDomNode projectNode = dom->firstChild().firstChild();
- QDomNode nodeDbg = projectNode.namedItem("debuggers");
+ TQDomDocument *dom = Project::ref()->sessionDom();
+ TQDomNode projectNode = dom->firstChild().firstChild();
+ TQDomNode nodeDbg = projectNode.namedItem("debuggers");
if(nodeDbg.isNull())
{
nodeDbg = dom->createElement("debuggers");
@@ -779,7 +779,7 @@ void DebuggerManager::saveProperties( )
if(Project::ref()->debuggerPersistentBreakpoints())
{
// (Re)create breakpoints section
- QDomNode nodeBreakpoints = nodeDbg.namedItem("breakpoints");
+ TQDomNode nodeBreakpoints = nodeDbg.namedItem("breakpoints");
if(!nodeBreakpoints.isNull())
nodeBreakpoints.parentNode().removeChild(nodeBreakpoints);
@@ -794,12 +794,12 @@ void DebuggerManager::saveProperties( )
DebuggerBreakpoint* bp;
while((bp = m_breakpointList->next()))
{
- QDomElement child = dom->createElement("breakpoint");
+ TQDomElement child = dom->createElement("breakpoint");
child.setAttribute("filepath", bp->filePath());
child.setAttribute("class", bp->inClass());
child.setAttribute("function", bp->inFunction());
child.setAttribute("condition", bp->condition());
- child.setAttribute("line", QString::number(bp->line()));
+ child.setAttribute("line", TQString::number(bp->line()));
if(bp->type() == DebuggerBreakpoint::ConditionalTrue)
child.setAttribute("type", "true");
else if(bp->type() == DebuggerBreakpoint::ConditionalChange)
@@ -816,7 +816,7 @@ void DebuggerManager::saveProperties( )
if(Project::ref()->debuggerPersistentWatches())
{
// (Re)create watches section
- QDomNode nodeWatches = nodeDbg.namedItem("watches");
+ TQDomNode nodeWatches = nodeDbg.namedItem("watches");
if(!nodeWatches.isNull())
nodeWatches.parentNode().removeChild(nodeWatches);
@@ -828,7 +828,7 @@ void DebuggerManager::saveProperties( )
// Loop watches and save 'em
for( DebuggerVariable *v = m_debuggerui->watches()->first(); v; v = m_debuggerui->watches()->next())
{
- QDomElement child = dom->createElement("watch");
+ TQDomElement child = dom->createElement("watch");
child.setAttribute("name", v->name());
nodeWatches.appendChild(child);
@@ -838,7 +838,7 @@ void DebuggerManager::saveProperties( )
}
}
-void DebuggerManager::slotHandleEvent( const QString & event, const QString &, const QString & )
+void DebuggerManager::slotHandleEvent( const TQString & event, const TQString &, const TQString & )
{
if(event == "before_project_close")
saveProperties();