A right-click on a map theme in the "Map Themes" panel in Marble allows you to mark (or unmark) a map theme as a favorite map theme. Favorite map themes show a small yellow star icon and are sorted on top of other map themes, which are sorted by name then. Currently when marking (or unmarking) a map theme the list of map themes is not sorted again. This task is about changing this.
- find the code that is responsible for the sorting and understand how it works. Start with MapViewWidget.cpp
- activate the dynamicSortFilter property in MapThemeSortFilterProxyModel
- when a map theme is (un-)marked as favorite, notify the source model about it so that it fires a dataChanged event which will cause the MapThemeSortFilterProxyModel to re-sort the map themes
Test your changes and generate a review request in Differential here at phabricator.kde.org.