Closed maciejsszmigiero closed 5 years ago
Merging #475 into master will decrease coverage by
0.02%
. The diff coverage is0%
.
@@ Coverage Diff @@
## master #475 +/- ##
========================================
- Coverage 7.32% 7.3% -0.03%
========================================
Files 44 44
Lines 2798 2806 +8
========================================
Hits 205 205
- Misses 2593 2601 +8
Impacted Files | Coverage Δ | |
---|---|---|
src/storemodel.h | 0% <ø> (ø) |
:arrow_up: |
src/mainwindow.cpp | 0% <0%> (ø) |
:arrow_up: |
src/storemodel.cpp | 0% <0%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update f9f9fba...a06be7f. Read the comment docs.
Since commit b4dc9e6 ("Auto update CHANGELOG and sorting of treeview") directories are no longer listed first in the tree view of passwords.
This is because a simple sort of the tree view widget (as enabled by the aforementioned commit) does its work by sorting the backing StoreModel (QSortFilterProxyModel), which in turn does just a simple lexicographical order sort on the path of each its item.
Before that commit the sort was done by QFileSystemModel via QFileSystemModelSorter, which always places its directories first on non-Mac platforms.
Unfortunately, QFileSystemModelSorter is an internal Qt helper class, so we can't just use it directly, we need to open-code a bit of logic from QFileSystemModelSorter::compareNodes() into StoreModel::lessThan() to restore the old behavior.
This PR also contains 3 small improvements around the modified code (in separate commits).