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

EMSUSD-1856 Add filtering search to the collection widget #4023

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

pierrebai-adsk
Copy link
Collaborator

  • Add a FilteredStringListModel class.
  • Use that model in the collection string list widgets.
  • Add a text edit widget to enter the search text
  • Connect the search changed signal to the filtered model.
  • Add a button to clear the search filter.
  • Add a flag on the filtered model to remember if it was entirely filtered out.
  • Properly re-filter the model when a new list of text is given.
  • Moved the filtered view in its own file.
  • Give the resizable lists a sensible default size.

- Add a FilteredStringListModel class.
- Use that model in the collection string list widgets.
- Add a text edit widget to enter the search text
- Connect the search changed signal to the filtered model.
- Add a button to clear the search filter.
- Add a flag on the filtered model to remember if it was entirely filtered out.
- Properly re-filter the model when a new list of text is given.
- Moved the filtered view in its own file.
- Give the resizable lists a sensible default size.
@pierrebai-adsk pierrebai-adsk self-assigned this Nov 29, 2024
@@ -127,6 +128,8 @@ def __init__(
self._widget: QWidget = None

self.loadPersistentStorage()
if self._contentSize < 0 and defaultSize > 0:
self._contentSize = defaultSize
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This avoids the lists to be very large by default. With the 80 passed in by the include/exclude panel, we get about 3 lines by default. Otherwise the lists a re way too big.

@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Dec 2, 2024
@seando-adsk seando-adsk added the workflows Related to in-context workflows label Dec 3, 2024
@seando-adsk seando-adsk merged commit 2abaed5 into dev Dec 3, 2024
11 checks passed
@seando-adsk seando-adsk deleted the bailp/EMSUSD-1856/search-collection branch December 3, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge workflows Related to in-context workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants