-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overview: clear pickup position display when opening cue menu #13693
Conversation
src/widget/woverview.cpp
Outdated
QEvent* ev = new QEvent(QEvent::HoverLeave); | ||
leaveEvent(ev); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ev is leaked. This should do the trick:
QEvent* ev = new QEvent(QEvent::HoverLeave); | |
leaveEvent(ev); | |
QEvent ev = QEvent(QEvent::HoverLeave); | |
leaveEvent(&ev); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
I definitly have to do some homework wrt pointers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when in doubt, never write "new" :).
1e217b1
to
3d8627b
Compare
3d8627b
to
af6057b
Compare
src/widget/woverview.cpp
Outdated
@@ -592,6 +592,10 @@ void WOverview::mousePressEvent(QMouseEvent* e) { | |||
m_pCurrentTrack->removeCue(pHoveredCue); | |||
return; | |||
} else { | |||
// Clear the pickup position display. | |||
// ev could actually be any event type, it's not used anyway. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's not used can we pass nullptr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's find out..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works, ready for merge!
af6057b
to
95536c0
Compare
IMO it only adds noise, all relevant info like the cue position is displayed in the cue menu.