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

Method keyPressEvent

plugins/projectmanagerview/projecttreeview.cpp:447–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445}
446
447void ProjectTreeView::keyPressEvent(QKeyEvent* event)
448{
449 if (event->key() == Qt::Key_Return && currentIndex().isValid() && state()!=QAbstractItemView::EditingState)
450 {
451 event->accept();
452 slotActivated(currentIndex());
453 }
454 else
455 QTreeView::keyPressEvent(event);
456}
457
458void ProjectTreeView::drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const
459{

Callers

nothing calls this directly

Calls 3

keyMethod · 0.45
isValidMethod · 0.45
acceptMethod · 0.45

Tested by

no test coverage detected