MCPcopy Create free account
hub / github.com/Zalafina/QKeyMapper / mousePressEvent

Method mousePressEvent

QKeyMapper/qmappingsequenceedit.cpp:472–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472void QMappingSequenceEdit::mousePressEvent(QMouseEvent *event)
473{
474 if (event->button() == Qt::LeftButton) {
475 QWidget *focused = focusWidget();
476 if (focused && focused != this) {
477 focused->clearFocus();
478#ifdef DEBUG_LOGOUT_ON
479 qDebug().nospace().noquote() << "[" << __func__ << "] Clear focus by mouse left click";
480#endif
481 }
482 }
483
484 QDialog::mousePressEvent(event);
485}
486
487void QMappingSequenceEdit::keyPressEvent(QKeyEvent *event)
488{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected