forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user