mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-10 10:10:02 -04:00
So far all subclasses implemented filtering on their own which doesn't make much sense. Now one can set filter keywords and a filter type for all ResourceModels. Subclasses simply have to call ResourceModel::itemMatchesFilter( ResourceItem ) in order to determine whether an item should be hidden or not. Additionally they have to implement the updateFilters() method in order to update their internal management data each time the filters change.
1.7 KiB
1.7 KiB