Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unbreak recursive filtering in ObjectIdsFilterProxyModel and more #878

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

milianw
Copy link
Member

@milianw milianw commented Dec 4, 2023

The code tried to be compatible with older Qt and newer but failed to do so correctly. When a model only implemented acceptRow then that was never called by newer Qt.

Instead, enforce all models to override acceptRow and prevent them from overriding filterAcceptsRow - instead add the dance there to make the code compatible to the old KRecursiveFilterProxyModel.

This unbreaks the "ctrl+shift+click" picker dialog to not show all objects but really only those that are visible at the given position.

The code tried to be compatible with older Qt and newer but failed
to do so correctly. When a model only implemented `acceptRow` then
that was never called by newer Qt.

Instead, enforce all models to override `acceptRow` and prevent them
from overriding `filterAcceptsRow` - instead add the dance there to
make the code compatible to the old KRecursiveFilterProxyModel.

This unbreaks the "ctrl+shift+click" picker dialog to not show all
objects but really only those that are visible at the given position.
@Waqar144 Waqar144 merged commit 4e5205c into master Dec 5, 2023
12 checks passed
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.

2 participants