diff options
author | hjk <[email protected]> | 2009-10-01 13:46:03 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2009-10-01 13:46:48 +0200 |
commit | c546a2c5ebf6a2a866d5e0fa133225cdfba80d10 (patch) | |
tree | 96c8f07588177dc3b30a8d72330cc423c7c5a95b | |
parent | 23358d8e25302e1e9c7bc957269787fb3a235b35 (diff) |
debugger: apply disassembler/normal view toggling immediately to stack view,
too
-rw-r--r-- | src/plugins/debugger/stackhandler.cpp | 2 | ||||
-rw-r--r-- | src/plugins/debugger/stackhandler.h | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/debugger/stackhandler.cpp b/src/plugins/debugger/stackhandler.cpp index 605c38b0d16..a28fa04399c 100644 --- a/src/plugins/debugger/stackhandler.cpp +++ b/src/plugins/debugger/stackhandler.cpp @@ -89,6 +89,8 @@ StackHandler::StackHandler(QObject *parent) { m_currentIndex = 0; m_canExpand = false; + connect(theDebuggerAction(OperateByInstruction), SIGNAL(triggered()), + this, SLOT(resetModel())); } int StackHandler::rowCount(const QModelIndex &parent) const diff --git a/src/plugins/debugger/stackhandler.h b/src/plugins/debugger/stackhandler.h index 7db40a263b3..dd2c0a4997f 100644 --- a/src/plugins/debugger/stackhandler.h +++ b/src/plugins/debugger/stackhandler.h @@ -69,11 +69,12 @@ public: private: // QAbstractTableModel - int rowCount(const QModelIndex &parent = QModelIndex()) const; - int columnCount(const QModelIndex &parent = QModelIndex()) const; - QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; + int rowCount(const QModelIndex &parent) const; + int columnCount(const QModelIndex &parent) const; + QVariant data(const QModelIndex &index, int role) const; QVariant headerData(int section, Qt::Orientation orientation, int role) const; Qt::ItemFlags flags(const QModelIndex &index) const; + Q_SLOT void resetModel() { reset(); } QList<StackFrame> m_stackFrames; int m_currentIndex; |