-
-
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
Fix Preferences Buttons #2664
Fix Preferences Buttons #2664
Conversation
@@ -17,16 +17,18 @@ class DlgPrefColors : public DlgPreferencePage, public Ui::DlgPrefColorsDlg { | |||
virtual ~DlgPrefColors(); | |||
|
|||
public slots: | |||
// Apply changes to widget | |||
/// Called when the preference dialog (not this page) is shown to the user. |
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.
Do we really need to copy documentation from parent classes into every derived class?
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.
No, but it doesn't hurt either. I just replaced the already existing comments with better ones.
Thank you for taking care of this. |
A bunch of pages don't implement
slotCancel
andslotResetToDefaults
.I implemented
slotResetToDefaults
for the colors and the controller pages and added a defaultslotCancel
implementation that falls back toslotUpdate
.To prevent situations like this in the future, I deleted the default implementation for
slotUpdate
/slotApply
/slotResetToDefault
so that pages have to implement them.For the LV2 page I added empty functions with a
TODO
comment for now, since I don't have any LV2 plugins and can't test it.