Fixed problems with synchronizations of preset selection widgets
Summary:
- Now the selector has *no* selection if the currently active preset is not present in the filtered list of presets
- Clicking on the currently selected preset now either resets it, or does nothing depending on the "Save tweaks..." option value.
- All the three preset selectors are now synchronized
- The selector correctly shown the "dirty" mark right after you changed any property of the preset.
Test Plan:
- Check sanity of the current selection in all the three preset selectors. They should be sane and synchronized.
- Switching the current tag should keep the selection correct (no selection is a valid state when the active preset is not present in the current tag)
- (!) Check if Brush Selector, Texture Selector, Pattern and Gradient popups still work correctly! They use the same codebase :(
Ref T3473
Reviewers: Krita, timotheegiet
Maniphest Tasks: T3473
Differential Revision: https://phabricator.kde.org/D2815