summaryrefslogtreecommitdiffstats
path: root/languages/cpp/debugger/disassemblewidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /languages/cpp/debugger/disassemblewidget.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/cpp/debugger/disassemblewidget.cpp')
-rw-r--r--languages/cpp/debugger/disassemblewidget.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/languages/cpp/debugger/disassemblewidget.cpp b/languages/cpp/debugger/disassemblewidget.cpp
index 759393f5..562aa1ae 100644
--- a/languages/cpp/debugger/disassemblewidget.cpp
+++ b/languages/cpp/debugger/disassemblewidget.cpp
@@ -22,9 +22,9 @@
#include <ktextedit.h>
#include <kglobalsettings.h>
-#include <qdict.h>
-#include <qheader.h>
-#include <qtextedit.h>
+#include <tqdict.h>
+#include <tqheader.h>
+#include <tqtextedit.h>
#include <stdlib.h>
@@ -35,8 +35,8 @@ namespace GDBDebugger
/***************************************************************************/
/***************************************************************************/
-DisassembleWidget::DisassembleWidget(GDBController* controller, QWidget *parent, const char *name)
- : QTextEdit(parent, name), controller_(controller),
+DisassembleWidget::DisassembleWidget(GDBController* controller, TQWidget *parent, const char *name)
+ : TQTextEdit(parent, name), controller_(controller),
active_(false),
lower_(0),
upper_(0),
@@ -92,8 +92,8 @@ void DisassembleWidget::slotActivate(bool activate)
/***************************************************************************/
-void DisassembleWidget::slotShowStepInSource( const QString &, int,
- const QString &currentAddress)
+void DisassembleWidget::slotShowStepInSource( const TQString &, int,
+ const TQString &currentAddress)
{
kdDebug(9012) << "DisasssembleWidget::slotShowStepInSource()" << endl;
@@ -116,7 +116,7 @@ void DisassembleWidget::getNextDisplay()
{
Q_ASSERT(!currentAddress_.isNull());
- QString cmd = QString("-data-disassemble -s $pc -e \"$pc + 128\" -- 0");
+ TQString cmd = TQString("-data-disassemble -s $pc -e \"$pc + 128\" -- 0");
controller_->addCommandToFront(
new GDBCommand( cmd, this, &DisassembleWidget::memoryRead ) );
}
@@ -127,7 +127,7 @@ void DisassembleWidget::getNextDisplay()
void DisassembleWidget::memoryRead(const GDBMI::ResultRecord& r)
{
const GDBMI::Value& content = r["asm_insns"];
- QString rawdata;
+ TQString rawdata;
clear();
@@ -135,12 +135,12 @@ void DisassembleWidget::memoryRead(const GDBMI::ResultRecord& r)
{
const GDBMI::Value& line = content[i];
- QString addr = line["address"].literal();
- QString fct = line["func-name"].literal();
- QString offs = line["offset"].literal();
- QString inst = line["inst"].literal();
+ TQString addr = line["address"].literal();
+ TQString fct = line["func-name"].literal();
+ TQString offs = line["offset"].literal();
+ TQString inst = line["inst"].literal();
- rawdata += QString(addr + " " + fct+"+"+offs + " " + inst + "\n");
+ rawdata += TQString(addr + " " + fct+"+"+offs + " " + inst + "\n");
if (i == 0) {
lower_ = strtoul(addr.latin1(), 0, 0);
@@ -155,13 +155,13 @@ void DisassembleWidget::memoryRead(const GDBMI::ResultRecord& r)
}
-void DisassembleWidget::showEvent(QShowEvent*)
+void DisassembleWidget::showEvent(TQShowEvent*)
{
slotActivate(true);
}
-void DisassembleWidget::hideEvent(QHideEvent*)
+void DisassembleWidget::hideEvent(TQHideEvent*)
{
slotActivate(false);
}