diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /languages/cpp/debugger/memviewdlg.cpp | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip |
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/cpp/debugger/memviewdlg.cpp')
-rw-r--r-- | languages/cpp/debugger/memviewdlg.cpp | 34 |
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; |