diff options
Diffstat (limited to 'kdbg/threadlist.cpp')
-rw-r--r-- | kdbg/threadlist.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kdbg/threadlist.cpp b/kdbg/threadlist.cpp index 7c60bc3..d2e4c35 100644 --- a/kdbg/threadlist.cpp +++ b/kdbg/threadlist.cpp @@ -8,35 +8,35 @@ #include "dbgdriver.h" #include <klocale.h> #include <kiconloader.h> -#include <qbitmap.h> -#include <qpainter.h> +#include <ntqbitmap.h> +#include <ntqpainter.h> -class ThreadEntry : public QListViewItem, public ThreadInfo +class ThreadEntry : public TQListViewItem, public ThreadInfo { public: - ThreadEntry(QListView* parent, const ThreadInfo& thread); - void setFunction(const QString& func); + ThreadEntry(TQListView* parent, const ThreadInfo& thread); + void setFunction(const TQString& func); bool m_delete; /* used for updating the list */ }; -ThreadEntry::ThreadEntry(QListView* parent, const ThreadInfo& thread) : - QListViewItem(parent, thread.threadName, thread.function), +ThreadEntry::ThreadEntry(TQListView* parent, const ThreadInfo& thread) : + TQListViewItem(parent, thread.threadName, thread.function), ThreadInfo(thread), m_delete(false) { } -void ThreadEntry::setFunction(const QString& func) +void ThreadEntry::setFunction(const TQString& func) { function = func; setText(1, function); } -ThreadList::ThreadList(QWidget* parent, const char* name) : - QListView(parent, name) +ThreadList::ThreadList(TQWidget* parent, const char* name) : + TQListView(parent, name) { addColumn(i18n("Thread ID"), 150); addColumn(i18n("Location")); @@ -45,8 +45,8 @@ ThreadList::ThreadList(QWidget* parent, const char* name) : m_focusIcon = UserIcon("pcinner"); makeNoFocusIcon(); - connect(this, SIGNAL(currentChanged(QListViewItem*)), - this, SLOT(slotCurrentChanged(QListViewItem*))); + connect(this, SIGNAL(currentChanged(TQListViewItem*)), + this, SLOT(slotCurrentChanged(TQListViewItem*))); } ThreadList::~ThreadList() @@ -56,7 +56,7 @@ ThreadList::~ThreadList() void ThreadList::updateThreads(const std::list<ThreadInfo>& threads) { // reset flag in all items - for (QListViewItem* e = firstChild(); e != 0; e = e->nextSibling()) { + for (TQListViewItem* e = firstChild(); e != 0; e = e->nextSibling()) { static_cast<ThreadEntry*>(e)->m_delete = true; } @@ -76,7 +76,7 @@ void ThreadList::updateThreads(const std::list<ThreadInfo>& threads) } // delete all entries that have not been seen - for (QListViewItem* e = firstChild(); e != 0;) { + for (TQListViewItem* e = firstChild(); e != 0;) { ThreadEntry* te = static_cast<ThreadEntry*>(e); e = e->nextSibling(); /* step ahead before deleting it ;-) */ if (te->m_delete) { @@ -87,7 +87,7 @@ void ThreadList::updateThreads(const std::list<ThreadInfo>& threads) ThreadEntry* ThreadList::threadById(int id) { - for (QListViewItem* e = firstChild(); e != 0; e = e->nextSibling()) { + for (TQListViewItem* e = firstChild(); e != 0; e = e->nextSibling()) { ThreadEntry* te = static_cast<ThreadEntry*>(e); if (te->id == id) { return te; @@ -104,13 +104,13 @@ void ThreadList::makeNoFocusIcon() { m_noFocusIcon = m_focusIcon; { - QPainter p(&m_noFocusIcon); - p.fillRect(0,0, m_noFocusIcon.width(),m_noFocusIcon.height(), QColor(white)); + TQPainter p(&m_noFocusIcon); + p.fillRect(0,0, m_noFocusIcon.width(),m_noFocusIcon.height(), TQColor(white)); } m_noFocusIcon.setMask(m_noFocusIcon.createHeuristicMask()); } -void ThreadList::slotCurrentChanged(QListViewItem* newItem) +void ThreadList::slotCurrentChanged(TQListViewItem* newItem) { if (newItem == 0) return; |