| 202 | } |
| 203 | |
| 204 | void FramestackWidget::frameSelectionChanged(const QModelIndex& current /* previous */) |
| 205 | { |
| 206 | if (!current.isValid()) |
| 207 | return; |
| 208 | IFrameStackModel::FrameItem f = m_session->frameStackModel()->frame(current); |
| 209 | /* If line is -1, then it's not a source file at all. */ |
| 210 | if (f.line != -1) { |
| 211 | QPair<QUrl, int> file = m_session->convertToLocalUrl(qMakePair(f.file, f.line)); |
| 212 | ICore::self()->documentController()->openDocument(file.first, KTextEditor::Cursor(file.second, 0), IDocumentController::DoNotFocus); |
| 213 | } |
| 214 | |
| 215 | m_session->frameStackModel()->setCurrentFrame(f.nr); |
| 216 | } |
| 217 | |
| 218 | void FramestackWidget::frameContextMenuRequested(const QPoint& pos) |
| 219 | { |
nothing calls this directly
no test coverage detected