Debugger: Use thread id, not model row to remember current thread

Task-number: QTCREATORBUG-9207
Change-Id: Ic98fb9a99c250dccf2735f28d0d3fefa7d1da52f
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-11-14 13:24:02 +01:00
parent 7f6c793f75
commit fefbc172f2
4 changed files with 55 additions and 44 deletions

View File

@@ -57,7 +57,7 @@ class ThreadsHandler : public QAbstractTableModel
public:
ThreadsHandler();
int currentThreadIndex() const { return m_currentIndex; }
int currentThreadIndex() const;
ThreadId currentThread() const;
ThreadId threadAt(int index) const;
void setCurrentThread(ThreadId id);
@@ -93,10 +93,10 @@ private:
int role = Qt::DisplayRole) const;
Qt::ItemFlags flags(const QModelIndex &index) const;
void updateThreadBox();
void dataChanged(int index);
void threadDataChanged(ThreadId id);
Threads m_threads;
int m_currentIndex;
ThreadId m_currentId;
const QIcon m_positionIcon;
const QIcon m_emptyIcon;