summaryrefslogtreecommitdiffstats
path: root/languages/cpp/debugger/memviewdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/debugger/memviewdlg.cpp')
-rw-r--r--languages/cpp/debugger/memviewdlg.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/languages/cpp/debugger/memviewdlg.cpp b/languages/cpp/debugger/memviewdlg.cpp
index 6d700233..44a95b1a 100644
--- a/languages/cpp/debugger/memviewdlg.cpp
+++ b/languages/cpp/debugger/memviewdlg.cpp
@@ -71,7 +71,7 @@ namespace GDBDebugger
it's not a standalone dialog. However, we want to have easy way
to hide/show all controls, so we group them in this class.
*/
- class MemoryRangeSelector : public QWidget
+ class MemoryRangeSelector : public TQWidget
{
public:
KLineEdit* startAddressLineEdit;
@@ -79,12 +79,12 @@ namespace GDBDebugger
TQPushButton* okButton;
TQPushButton* cancelButton;
- MemoryRangeSelector(TQWidget* parent)
- : TQWidget(parent)
+ MemoryRangeSelector(TQWidget* tqparent)
+ : TQWidget(tqparent)
{
TQVBoxLayout* l = new TQVBoxLayout(this);
- // Grid layout: labels + address field
+ // Grid tqlayout: labels + address field
TQGridLayout* gl = new TQGridLayout(l);
gl->setColSpacing(0, 2);
@@ -127,8 +127,8 @@ namespace GDBDebugger
MemoryView::MemoryView(GDBController* controller,
- TQWidget* parent, const char* name)
- : TQWidget(parent, name),
+ TQWidget* tqparent, const char* name)
+ : TQWidget(tqparent, name),
controller_(controller),
// New memory view can be created only when debugger is active,
// so don't set s_appNotStarted here.
@@ -263,8 +263,8 @@ namespace GDBDebugger
new
GDBCommand(
TQString("-data-read-memory %1 x 1 1 %2")
- .arg(rangeSelector_->startAddressLineEdit->text())
- .arg(size).ascii(),
+ .tqarg(rangeSelector_->startAddressLineEdit->text())
+ .tqarg(size).ascii(),
this,
&MemoryView::memoryRead));
}
@@ -280,7 +280,7 @@ namespace GDBDebugger
start_ = startAsString_.toUInt(0, 0);
setCaption(TQString("%1 (%2 bytes)")
- .arg(startAsString_).arg(amount_));
+ .tqarg(startAsString_).tqarg(amount_));
emit captionChanged(caption());
KHE::BytesEditInterface* bytesEditor
@@ -328,9 +328,9 @@ namespace GDBDebugger
controller_->addCommand(
new GDBCommand(
TQString("set *(char*)(%1 + %2) = %3")
- .arg(start_)
- .arg(i)
- .arg(TQString::number(data_[i]))));
+ .tqarg(start_)
+ .tqarg(i)
+ .tqarg(TQString::number(data_[i]))));
}
}
@@ -374,7 +374,7 @@ namespace GDBDebugger
new
GDBCommand(
TQString("-data-read-memory %1 x 1 1 %2")
- .arg(start_).arg(amount_).ascii(),
+ .tqarg(start_).tqarg(amount_).ascii(),
this,
&MemoryView::memoryRead));
}
@@ -403,9 +403,9 @@ namespace GDBDebugger
ViewerWidget::ViewerWidget(GDBController* controller,
- TQWidget* parent,
+ TQWidget* tqparent,
const char* name)
- : TQWidget(parent, name),
+ : TQWidget(tqparent, name),
controller_(controller)
{
setIcon(SmallIcon("math_brace"));
@@ -457,7 +457,7 @@ namespace GDBDebugger
TQWidget* ncs = const_cast<TQWidget*>(s);
TQString cap = caption;
// Prevent intepreting '&' as accelerator specifier.
- cap.replace("&", "&&");
+ cap.tqreplace("&", "&&");
toolBox_->setItemLabel(toolBox_->indexOf(ncs), cap);
}
@@ -466,7 +466,7 @@ namespace GDBDebugger
TQValueVector<MemoryView*>::iterator i, e;
for(i = memoryViews_.begin(), e = memoryViews_.end(); i != e; ++i)
{
- if (*i == child)
+ if (TQT_BASE_OBJECT(*i) == TQT_BASE_OBJECT(child))
{
memoryViews_.erase(i);
break;