| 174 | } |
| 175 | |
| 176 | void FramestackWidget::currentThreadChanged(int thread) |
| 177 | { |
| 178 | if (thread != -1) { |
| 179 | IFrameStackModel* model = m_session->frameStackModel(); |
| 180 | QModelIndex idx = model->currentThreadIndex(); |
| 181 | m_threadsListView->selectionModel()->select(idx, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows); |
| 182 | m_threadsWidget->setVisible(model->rowCount() > 1); |
| 183 | m_framesTreeView->setRootIndex(idx); |
| 184 | m_framesTreeView->header()->setSectionResizeMode(0, QHeaderView::ResizeToContents); |
| 185 | } else { |
| 186 | m_threadsWidget->hide(); |
| 187 | m_threadsListView->selectionModel()->clear(); |
| 188 | m_framesTreeView->setRootIndex(QModelIndex()); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | void FramestackWidget::currentFrameChanged(int frame) |
| 193 | { |
nothing calls this directly
no test coverage detected