diff options
author | hjk <qtc-committer@nokia.com> | 2010-04-30 14:18:10 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-04-30 14:22:48 +0200 |
commit | 5560f5e2f16bb7a42ca39c7c56d642b64fcb5091 (patch) | |
tree | c0545864df314a44166400f72a935ab32905baff /src/plugins/debugger/stackhandler.cpp | |
parent | 24d1fbd15b6495b46b34a907d1c4e46f78122836 (diff) | |
download | qt-creator-5560f5e2f16bb7a42ca39c7c56d642b64fcb5091.tar.gz |
debugger: make it possible to bulk-assign breakpoints to threads
Diffstat (limited to 'src/plugins/debugger/stackhandler.cpp')
-rw-r--r-- | src/plugins/debugger/stackhandler.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/debugger/stackhandler.cpp b/src/plugins/debugger/stackhandler.cpp index 5913d0c30d..432cef2878 100644 --- a/src/plugins/debugger/stackhandler.cpp +++ b/src/plugins/debugger/stackhandler.cpp @@ -361,6 +361,13 @@ QVariant ThreadsHandler::headerData(int section, Qt::Orientation orientation, in return QVariant(); } +int ThreadsHandler::currentThreadId() const +{ + if (m_currentIndex < 0 || m_currentIndex >= m_threads.size()) + return -1; + return m_threads[m_currentIndex].id; +} + void ThreadsHandler::setCurrentThread(int index) { if (index == m_currentIndex) |