debugger: convert threads model

This commit is contained in:
hjk
2010-11-05 17:02:27 +01:00
parent b7796bf309
commit 1dacb9e55f
5 changed files with 11 additions and 26 deletions

View File

@@ -38,8 +38,6 @@
#include "threaddata.h"
namespace Debugger {
class DebuggerEngine;
namespace Internal {
////////////////////////////////////////////////////////////////////////
@@ -54,7 +52,7 @@ class ThreadsHandler : public QAbstractTableModel
Q_OBJECT
public:
explicit ThreadsHandler(DebuggerEngine *engine);
ThreadsHandler();
int currentThread() const { return m_currentIndex; }
void setCurrentThread(int index);
@@ -75,12 +73,9 @@ private:
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
bool setData(const QModelIndex &index, const QVariant &value, int role);
QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const;
private:
DebuggerEngine *m_engine;
Threads m_threads;
int m_currentIndex;
const QIcon m_positionIcon;