MCPcopy Create free account
hub / github.com/KDE/kdevelop / keyReleaseEvent

Method keyReleaseEvent

plugins/documentswitcher/documentswitchertreeview.cpp:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void 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
48void DocumentSwitcherTreeView::drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const
49{

Callers

nothing calls this directly

Calls 4

keyMethod · 0.45
itemActivatedMethod · 0.45
currentIndexMethod · 0.45
acceptMethod · 0.45

Tested by

no test coverage detected