| 35 | } |
| 36 | |
| 37 | void DocumentSwitcherTreeView::keyReleaseEvent(QKeyEvent* event) |
| 38 | { |
| 39 | if (event->key() == Qt::Key_Control) { |
| 40 | plugin->itemActivated(selectionModel()->currentIndex()); |
| 41 | event->accept(); |
| 42 | hide(); |
| 43 | } else { |
| 44 | QTreeView::keyReleaseEvent(event); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | void DocumentSwitcherTreeView::drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const |
| 49 | { |
nothing calls this directly
no test coverage detected