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

Feature paged model filtering #44

Merged
merged 26 commits into from
Jan 13, 2022
Merged

Feature paged model filtering #44

merged 26 commits into from
Jan 13, 2022

Conversation

gfgit
Copy link
Owner

@gfgit gfgit commented Jan 13, 2022

Allow to filter items in paged models

  • FilterHeaderView: new QHeaderView subclass to allow filtering
  • New API for setting filters
  • Implemented filtering in most models
  • Move query building to common function buildQuery() in most models

FilterHeaderLineEdit: convinience class to get delayed signal
- JobsManager, StationsManager, RollingStockManager, ShiftManager

- StationFreeRSViewer: make a note to fix when ready
- SelectStationPage: adapt to model changes
- FilterHeaderView: sync filters when they change
Emit only if really changed and do not emit when changed by model
filterChanged() signal
- Clear filter when adding new RS Owner

- JobListModel, ImportStationModel: emit filterChanged()
FilterHeaderLineEdit: add "Filter #NULL" action to context menu
- Removed now unused RSListOnDemandResultEvent class
- Adapt TrainAssetModel and StopCouplingModel
Fix switch statment in setFilterAtCol()
@gfgit gfgit self-assigned this Jan 13, 2022
@gfgit gfgit added the enhancement New feature or request label Jan 13, 2022
@gfgit gfgit added this to In progress in ModelRailroadTimetablePlanner Tasks via automation Jan 13, 2022
@gfgit gfgit merged commit eaa0f0d into master Jan 13, 2022
ModelRailroadTimetablePlanner Tasks automation moved this from In progress to Done Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

None yet

1 participant