- adds SortModel in ImageViewer to filter just the images for the ImageViewer listView
- uses filterRole and filterRegExp properties exposed by QSortFilterProxyModel
- mapping from source and to source are done in order to keep the currentItem consistent for every view
Details
Details
- Reviewers
mart - Group Reviewers
Koko - Maniphest Tasks
- T6268: Implementing the main ImageViewer
- Commits
- R659:18e96d3f7cae: Applies filter to just show the images in the ImageViewer
Diff Detail
Diff Detail
- Repository
- R659 Koko Image Gallery
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage
src/sortmodel.cpp | ||
---|---|---|
243 | return mapFromSource( sourceModel()->index( indexValue, 0, QModelIndex())).row(); |
Comment Actions
view of currentImage automatically changes the currentItem according to the navigation performed in imageviewer