| 470 | } |
| 471 | |
| 472 | void 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 | |
| 487 | void QMappingSequenceEdit::keyPressEvent(QKeyEvent *event) |
| 488 | { |
nothing calls this directly
no outgoing calls
no test coverage detected