Created attachment 144312 [details] Page 1 of the MyPaint settings widget SUMMARY KisPaintOpOptionListModel renders paintop options as they were inserted. This usually matches the category order, but this parameter is pointless; categories are created as standalone items. This results in a particular setting of MyPaint brushes, "Airbrush", being rendered as part of the "Custom" category when it's a "Color" option. STEPS TO REPRODUCE 1. Open Krita. 2. Select a MyPaint brush. 3. Check its options list. Cross check it with the category specified in MyPaintPaintOpSettingsWidget.cpp. OBSERVED RESULT Items are rendered sorted by insertion order, and categories are rendered at the index they were first created. EXPECTED RESULT Items are rendered sorted by category. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
Created attachment 144313 [details] Page 2 of the MyPaint settings widget
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/1209
Git commit f713b89c5168b7f9cd15254734cde18928d4235e by L. E. Segovia. Committed on 07/12/2021 at 18:17. Pushed by lsegovia into branch 'master'. Workaround KisPaintOpOptionListModel sorting "bug" M +1 -1 plugins/paintops/mypaint/MyPaintPaintOpSettingsWidget.cpp https://invent.kde.org/graphics/krita/commit/f713b89c5168b7f9cd15254734cde18928d4235e
Git commit 916796b9fe1cf4d797da78b8dfea1dda393e474f by L. E. Segovia. Committed on 09/12/2021 at 22:01. Pushed by lsegovia into branch 'krita/5.0'. Workaround KisPaintOpOptionListModel sorting "bug" (cherry picked from commit f713b89c5168b7f9cd15254734cde18928d4235e) M +1 -1 plugins/paintops/mypaint/MyPaintPaintOpSettingsWidget.cpp https://invent.kde.org/graphics/krita/commit/916796b9fe1cf4d797da78b8dfea1dda393e474f