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/framestackwidget.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/framestackwidget.cpp')
-rw-r--r-- | languages/cpp/debugger/framestackwidget.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/languages/cpp/debugger/framestackwidget.cpp b/languages/cpp/debugger/framestackwidget.cpp index fb0246e6..28fd076e 100644 --- a/languages/cpp/debugger/framestackwidget.cpp +++ b/languages/cpp/debugger/framestackwidget.cpp @@ -39,9 +39,9 @@ namespace GDBDebugger { FramestackWidget::FramestackWidget(GDBController* controller, - TQWidget *parent, + TQWidget *tqparent, const char *name, WFlags f) - : TQListView(parent, name, f), + : TQListView(tqparent, name, f), viewedThread_(0), controller_(controller), mayUpdate_( false ) @@ -49,9 +49,9 @@ FramestackWidget::FramestackWidget(GDBController* controller, setRootIsDecorated(true); setSorting(-1); setSelectionMode(Single); - addColumn(TQString::null); // Frame number - addColumn(TQString::null); // function name/address - addColumn(TQString::null); // source + addColumn(TQString()); // Frame number + addColumn(TQString()); // function name/address + addColumn(TQString()); // source header()->hide(); @@ -111,7 +111,7 @@ void FramestackWidget::slotSelectionChanged(TQListViewItem *thisItem) if (frame->threadNo() != -1) controller_->addCommand( new GDBCommand(TQString("-thread-select %1") - .arg(frame->threadNo()).ascii())); + .tqarg(frame->threadNo()).ascii())); viewedThread_ = findThread(frame->threadNo()); getBacktrace(frame->frameNo(), frame->frameNo() + frameChunk_); @@ -208,7 +208,7 @@ void FramestackWidget::getBacktrace(int min_frame, int max_frame) maxFrame_ = max_frame; controller_->addCommand( - new GDBCommand(TQString("-stack-info-depth %1").arg(max_frame+1), + new GDBCommand(TQString("-stack-info-depth %1").tqarg(max_frame+1), this, &FramestackWidget::handleStackDepth)); } @@ -224,7 +224,7 @@ void FramestackWidget::handleStackDepth(const GDBMI::ResultRecord& r) //add the following command to the front, so noone switches threads in between controller_->addCommandToFront( new GDBCommand(TQString("-stack-list-frames %1 %2") - .arg(minFrame_).arg(maxFrame_), + .tqarg(minFrame_).tqarg(maxFrame_), this, &FramestackWidget::parseGDBBacktraceList)); } @@ -236,7 +236,7 @@ void FramestackWidget::getBacktraceForThread(int threadNo) // Switch to the target thread. controller_->addCommand( new GDBCommand(TQString("-thread-select %1") - .arg(threadNo).ascii())); + .tqarg(threadNo).ascii())); viewedThread_ = findThread(threadNo); } @@ -248,7 +248,7 @@ void FramestackWidget::getBacktraceForThread(int threadNo) // Switch back to the original thread. controller_->addCommand( new GDBCommand(TQString("-thread-select %1") - .arg(currentThread).ascii())); + .tqarg(currentThread).ascii())); } } @@ -274,13 +274,13 @@ void FramestackWidget::handleThreadList(const GDBMI::ResultRecord& r) TQString id = ids.results[i]->value->literal(); controller_->addCommand( - new GDBCommand(TQString("-thread-select %1").arg(id).ascii(), + new GDBCommand(TQString("-thread-select %1").tqarg(id).ascii(), this, &FramestackWidget::handleThread)); } controller_->addCommand( new GDBCommand(TQString("-thread-select %1") - .arg(controller_->currentThread()).ascii())); + .tqarg(controller_->currentThread()).ascii())); } // Get backtrace for the current thread. We need to do this @@ -493,10 +493,10 @@ void FramestackWidget::drawContentsOffset( TQPainter * p, int ox, int oy, // ************************************************************************** // ************************************************************************** -FrameStackItem::FrameStackItem(FramestackWidget *parent, +FrameStackItem::FrameStackItem(FramestackWidget *tqparent, unsigned frameNo, const TQString &name) - : TQListViewItem(parent, parent->lastChild()), + : TQListViewItem(tqparent, tqparent->lastChild()), frameNo_(frameNo), threadNo_(-1) { @@ -505,12 +505,12 @@ FrameStackItem::FrameStackItem(FramestackWidget *parent, // ************************************************************************** -FrameStackItem::FrameStackItem(ThreadStackItem *parent, +FrameStackItem::FrameStackItem(ThreadStackItem *tqparent, unsigned frameNo, const TQString &name) - : TQListViewItem(parent, parent->lastChild()), + : TQListViewItem(tqparent, tqparent->lastChild()), frameNo_(frameNo), - threadNo_(parent->threadNo()) + threadNo_(tqparent->threadNo()) { setText(0, name); } @@ -554,11 +554,11 @@ void FrameStackItem::setOpen(bool open) // ************************************************************************** // ************************************************************************** -ThreadStackItem::ThreadStackItem(FramestackWidget *parent, unsigned threadNo) -: TQListViewItem(parent), +ThreadStackItem::ThreadStackItem(FramestackWidget *tqparent, unsigned threadNo) +: TQListViewItem(tqparent), threadNo_(threadNo) { - setText(0, i18n("Thread %1").arg(threadNo_)); + setText(0, i18n("Thread %1").tqarg(threadNo_)); setExpandable(true); } |