Skip to content

Fuzzy text search, part 0: Allow subclassing filters and sorters of SortFilterProxyModel#14

Open
juli27 wants to merge 6 commits intomusescore:mainfrom
juli27:refactorSFPM
Open

Fuzzy text search, part 0: Allow subclassing filters and sorters of SortFilterProxyModel#14
juli27 wants to merge 6 commits intomusescore:mainfrom
juli27:refactorSFPM

Conversation

@juli27
Copy link
Copy Markdown
Contributor

@juli27 juli27 commented May 9, 2026

This is a prerequisite part for my effort to implement fuzzy search in MSS. (musescore/MuseScore#15983)
This aligns our SortFilterProxyModel a bit closer to Qt's new-ish Qml SortFilterProxyModel, while allowing custom filters and sorters.
MuseScore Studio builds over at the previous home of these changes: musescore/MuseScore#33052.

  • I signed the CLA
  • The title of the PR describes the problem it addresses
  • Each commit's message describes its purpose and effects, and references the issue it resolves
  • If changes are extensive, there is a sequence of easily reviewable commits
  • The code in the PR follows the coding rules
  • There are no unnecessary changes
  • The code compiles and runs on my machine, preferably after each commit individually
  • I created a unit test or vtest to verify the changes I made (if applicable)

Build configuration

audacity: audacity/audacity/master
audacity platforms: linux_x64
musescore: musescore/MuseScore/master
musescore platforms: linux_x64 windows_x64 macos

juli27 added 6 commits May 9, 2026 13:15
- Remove unused private method `reset()`
- Remove unused invokable method `refresh()`
- Remove unused signal `filtersChanged`
  - it is never emitted
- expose roleIdFromName (formerly roleKey)
  - this is needed by later commits
This prevented multiple filters from using the same role.
Also, filter subclasses won't necessarily operate on a single role.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant