- 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
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
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