Skip to content

Commit

Permalink
Merge pull request mixxxdj#14177 from ronso0/pushbutton-remove-focusout
Browse files Browse the repository at this point in the history
(cleanup) remove obsolete focusOutEvent() from WPushButton
  • Loading branch information
Swiftb0y authored Jan 17, 2025
2 parents 278806d + 49c2d62 commit 7e3aa94
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions src/widget/wpushbutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,18 +463,6 @@ bool WPushButton::event(QEvent* e) {
return WWidget::event(e);
}

void WPushButton::focusOutEvent(QFocusEvent* e) {
qDebug() << "focusOutEvent" << e->reason();
if (m_bPressed && e->reason() != Qt::MouseFocusReason) {
// Since we support multi touch there is no reason to reset
// the pressed flag if the Primary touch point is moved to an
// other widget
m_bPressed = false;
restyleAndRepaint();
}
QWidget::focusOutEvent(e);
}

void WPushButton::mouseReleaseEvent(QMouseEvent * e) {
// Note. when changing any of these actions, also take care of
// WHotcueButton::release()
Expand Down
1 change: 0 additions & 1 deletion src/widget/wpushbutton.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ class WPushButton : public WWidget {
void paintEvent(QPaintEvent* e) override;
void mousePressEvent(QMouseEvent* e) override;
void mouseReleaseEvent(QMouseEvent* e) override;
void focusOutEvent(QFocusEvent* e) override;
void fillDebugTooltip(QStringList* debug) override;

protected:
Expand Down

0 comments on commit 7e3aa94

Please sign in to comment.