summaryrefslogtreecommitdiffstats
path: root/languages/ruby/debugger/framestackwidget.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/ruby/debugger/framestackwidget.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/ruby/debugger/framestackwidget.cpp')
-rw-r--r--languages/ruby/debugger/framestackwidget.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/languages/ruby/debugger/framestackwidget.cpp b/languages/ruby/debugger/framestackwidget.cpp
index 836350b2..c8083dc8 100644
--- a/languages/ruby/debugger/framestackwidget.cpp
+++ b/languages/ruby/debugger/framestackwidget.cpp
@@ -25,11 +25,11 @@
#include <klocale.h>
#include <kdebug.h>
-#include <qheader.h>
-#include <qlistbox.h>
-#include <qregexp.h>
-#include <qstrlist.h>
-#include <qfileinfo.h>
+#include <tqheader.h>
+#include <tqlistbox.h>
+#include <tqregexp.h>
+#include <tqstrlist.h>
+#include <tqfileinfo.h>
#include <ctype.h>
@@ -41,18 +41,18 @@
namespace RDBDebugger
{
-FramestackWidget::FramestackWidget(QWidget *parent, const char *name, WFlags f)
- : QListView(parent, name, f),
+FramestackWidget::FramestackWidget(TQWidget *parent, const char *name, WFlags f)
+ : TQListView(parent, name, f),
viewedThread_(0)
{
setRootIsDecorated(true);
setSelectionMode(Single);
- addColumn(QString());
+ addColumn(TQString());
setSorting(0);
header()->hide();
- connect( this, SIGNAL(clicked(QListViewItem*)),
- this, SLOT(slotSelectionChanged(QListViewItem*)) );
+ connect( this, TQT_SIGNAL(clicked(TQListViewItem*)),
+ this, TQT_SLOT(slotSelectionChanged(TQListViewItem*)) );
}
@@ -68,12 +68,12 @@ FramestackWidget::~FramestackWidget()
void FramestackWidget::clear()
{
viewedThread_ = 0;
- QListView::clear();
+ TQListView::clear();
}
/***************************************************************************/
-void FramestackWidget::slotSelectionChanged(QListViewItem * item)
+void FramestackWidget::slotSelectionChanged(TQListViewItem * item)
{
if (item == 0) {
return;
@@ -100,7 +100,7 @@ void FramestackWidget::slotSelectFrame(int frameNo, int threadNo)
setSelected(frame, true);
emit selectFrame(frameNo, threadNo, frame->frameName());
} else {
- emit selectFrame(frameNo, threadNo, QString());
+ emit selectFrame(frameNo, threadNo, TQString());
}
}
@@ -111,7 +111,7 @@ void FramestackWidget::parseRDBThreadList(char *str)
// on receipt of a thread list we must always clear the list.
clear();
- QRegExp thread_re("(\\+)?\\s*(\\d+)\\s*(#<[^>]+>\\s*[^:]+:\\d+)");
+ TQRegExp thread_re("(\\+)?\\s*(\\d+)\\s*(#<[^>]+>\\s*[^:]+:\\d+)");
int pos = thread_re.search(str);
viewedThread_ = 0;
@@ -119,7 +119,7 @@ void FramestackWidget::parseRDBThreadList(char *str)
ThreadStackItem* thread;
thread = new ThreadStackItem( this,
thread_re.cap(2).toInt(),
- QString("%1 %2").arg(thread_re.cap(2)).arg(thread_re.cap(3)) );
+ TQString("%1 %2").arg(thread_re.cap(2)).arg(thread_re.cap(3)) );
// The thread with a '+' is always the viewedthread
if (thread_re.cap(1) == "+") {
viewedThread_ = thread;
@@ -148,8 +148,8 @@ void FramestackWidget::parseRDBBacktraceList(char *str)
}
int frameNo = frame_re.cap(1).toInt();
- QString frameName = QString("T%1#%2 %3").arg(viewedThread_->threadNo()).arg(frame_re.cap(1)).arg(method);
- new FrameStackItem(viewedThread_, frameNo, QString(frame_re.cap(0)), frameName);
+ TQString frameName = TQString("T%1#%2 %3").arg(viewedThread_->threadNo()).arg(frame_re.cap(1)).arg(method);
+ new FrameStackItem(viewedThread_, frameNo, TQString(frame_re.cap(0)), frameName);
// Tell the Variable Tree that this frame is active
emit frameActive(frameNo, viewedThread_->threadNo(), frameName);
@@ -169,7 +169,7 @@ void FramestackWidget::parseRDBBacktraceList(char *str)
ThreadStackItem *FramestackWidget::findThread(int threadNo)
{
- QListViewItem *sibling = firstChild();
+ TQListViewItem *sibling = firstChild();
while (sibling != 0) {
ThreadStackItem *thread = (ThreadStackItem*) sibling;
if (thread->threadNo() == threadNo) {
@@ -192,7 +192,7 @@ FrameStackItem *FramestackWidget::findFrame(int frameNo, int threadNo)
return 0; // no matching thread?
}
- QListViewItem * frameItem = thread->firstChild();
+ TQListViewItem * frameItem = thread->firstChild();
while (frameItem != 0) {
if (((FrameStackItem *) frameItem)->frameNo() == frameNo) {
@@ -211,8 +211,8 @@ FrameStackItem *FramestackWidget::findFrame(int frameNo, int threadNo)
// **************************************************************************
-FrameStackItem::FrameStackItem(ThreadStackItem *parent, int frameNo, const QString &frameDesc, const QString& frameName)
- : QListViewItem(parent),
+FrameStackItem::FrameStackItem(ThreadStackItem *parent, int frameNo, const TQString &frameDesc, const TQString& frameName)
+ : TQListViewItem(parent),
frameNo_(frameNo),
threadNo_(parent->threadNo()),
frameName_(frameName)
@@ -229,7 +229,7 @@ FrameStackItem::~FrameStackItem()
// **************************************************************************
-QString FrameStackItem::key(int /*column*/, bool /*ascending*/) const
+TQString FrameStackItem::key(int /*column*/, bool /*ascending*/) const
{
return key_;
@@ -239,8 +239,8 @@ QString FrameStackItem::key(int /*column*/, bool /*ascending*/) const
// **************************************************************************
// **************************************************************************
-ThreadStackItem::ThreadStackItem(FramestackWidget *parent, int threadNo, const QString &threadDesc)
- : QListViewItem(parent),
+ThreadStackItem::ThreadStackItem(FramestackWidget *parent, int threadNo, const TQString &threadDesc)
+ : TQListViewItem(parent),
threadNo_(threadNo)
{
setText(0, threadDesc);
@@ -260,7 +260,7 @@ void ThreadStackItem::setOpen(bool open)
if (open)
((FramestackWidget*)listView())->slotSelectFrame(1, threadNo());
- QListViewItem::setOpen(open);
+ TQListViewItem::setOpen(open);
}
}