-
-
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
allow changing the waveform overview type without reloading the skin #13273
Conversation
6782e99
to
d0e0e94
Compare
I think this super low-risk and can go to 2.5 FWIW the only change I made here was to move the draw functions to the base class, no further adjustments. |
d0e0e94
to
7080e9d
Compare
866de76
to
6c3ec64
Compare
6c3ec64
to
d4c1bc2
Compare
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.
It works like a charm, Thank you. Somme comments:
const QString m_group; | ||
UserSettingsPointer m_pConfig; | ||
parented_ptr<ControlProxy> m_endOfTrackControl; | ||
|
||
int m_type; |
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.
Can we make this an enum?
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.
Sure, we can that's why I mentioned it as nice-to-have in the description, and I already took a stab at it.
But I gave up since it took to long and isn't mandatory IMO, even feels like this makes the preferences more complicated (or I simply messed something up there)
I can take another look, but actually I'd appreciate if we could this merged soonish and refine later on (before the 2.5 release)
src/widget/woverview.cpp
Outdated
@@ -1211,6 +1237,285 @@ void WOverview::drawPassthroughOverlay(QPainter* pPainter) { | |||
} | |||
} | |||
|
|||
bool WOverview::drawNextPixmapPart() { | |||
ScopedTimer t(u"WOverview::drawNextPixmapPartHSV"); |
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.
ScopedTimer t(u"WOverview::drawNextPixmapPartHSV"); | |
ScopedTimer t(QStringLiteral("WOverview::drawNextPixmapPartHSV")); |
Else it will break after merging 2.5 to main.
src/widget/woverview.cpp
Outdated
ConstWaveformPointer pWaveform, | ||
const int nextCompletion) { | ||
DEBUG_ASSERT(!m_waveformSourceImage.isNull()); | ||
ScopedTimer t(u"WOverview::drawNextPixmapPartHSV"); |
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.
ScopedTimer t(u"WOverview::drawNextPixmapPartHSV"); | |
ScopedTimer t(QStringLieral("WOverview::drawNextPixmapPartHSV")); |
src/widget/woverview.cpp
Outdated
ConstWaveformPointer pWaveform, | ||
const int nextCompletion) { | ||
DEBUG_ASSERT(!m_waveformSourceImage.isNull()); | ||
ScopedTimer t(u"WOverview::drawNextPixmapPartLMH"); |
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.
ScopedTimer t(u"WOverview::drawNextPixmapPartLMH"); | |
ScopedTimer t(QStringLiteral("WOverview::drawNextPixmapPartLMH")); |
src/widget/woverview.cpp
Outdated
ConstWaveformPointer pWaveform, | ||
const int nextCompletion) { | ||
DEBUG_ASSERT(!m_waveformSourceImage.isNull()); | ||
ScopedTimer t(u"WOverview::drawNextPixmapPartRGB"); |
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.
ScopedTimer t(u"WOverview::drawNextPixmapPartRGB"); | |
ScopedTimer t(QStringLiteral("WOverview::drawNextPixmapPartRGB")); |
227973f
to
3fd550b
Compare
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.
LGTM thank you.
... by moving the RGB/LMH/HSV pixmap drawing into the base class WOveriew.
Type change is caught by a ControlProxy.
Switching works super smooth 😎
Partially fixes #9745
This is a bugfix IMO and can slip in 2.5 anytime.
Nice to have: enum for overview type
Hopefully not to many conflicts with the current waveform pref work