Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions plugins/dde-dock/common/jumpsettingbutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ bool JumpSettingButton::event(QEvent* e)
m_hover = e->type() == QEvent::Enter;
update();
break;
case QEvent::Hide:
m_hover = false;
update();
break;
default:
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ bool JumpSettingButton::event(QEvent* e)
m_hover = e->type() == QEvent::Enter;
update();
break;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Duplicate event logic across plugins—factor into shared component

Extract JumpSettingButton into a shared base or common library to avoid divergent implementations and ensure consistent grouping and Show handling.

case QEvent::Hide:
m_hover = false;
update();
break;
default:
break;
}
Expand Down