diff options
author | Friedemann Kleint <[email protected]> | 2009-10-05 17:19:28 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2009-10-05 17:19:28 +0200 |
commit | 67155e3d7fec5addc78925496657273e16039cc1 (patch) | |
tree | 50663769c3b861cf7c83ef6e454566cd9cd92a3b /src/plugins/debugger/stackhandler.h | |
parent | bdd0169c3c576be4b9e2640fe13a3e7b6a1baf32 (diff) |
Debugger: Extend threads model to display frame.
Acked-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/stackhandler.h')
-rw-r--r-- | src/plugins/debugger/stackhandler.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/plugins/debugger/stackhandler.h b/src/plugins/debugger/stackhandler.h index 8b0d7a165c3..0df1d602573 100644 --- a/src/plugins/debugger/stackhandler.h +++ b/src/plugins/debugger/stackhandler.h @@ -100,8 +100,15 @@ private: struct ThreadData { - ThreadData(int threadId = 0) : id(threadId) {} + ThreadData(int threadId = 0); + void notifyRunning(); // Clear state information + int id; + // State information when stopped + quint64 address; + QString function; + QString file; + int line; }; /*! A model to represent the running threads in a QTreeView or ComboBox */ @@ -119,6 +126,9 @@ public: QList<ThreadData> threads() const; QAbstractItemModel *threadsModel() { return this; } + // Clear out all frame information + void notifyRunning(); + private: int rowCount(const QModelIndex &parent = QModelIndex()) const; int columnCount(const QModelIndex &parent = QModelIndex()) const; @@ -126,11 +136,10 @@ private: QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; private: - friend class StackHandler; QList<ThreadData> m_threads; int m_currentIndex; - QIcon m_positionIcon; - QIcon m_emptyIcon; + const QIcon m_positionIcon; + const QIcon m_emptyIcon; }; |