Vcs: Fix sorting of files in the commit dialog
Summary:
This fixes Bug 183625
In the commit dialog files whern't sorted. They are showed using VcsFileCHangesModel. I overloaded operator < of VcsStatusInfoItem to sort them. The sorting rules are:
- versioned files before uneversioned
- alphabetically (by path)
Details:
Added possibility to access the state of file in VcsFileChangesModel (not used in the end)
Introduced enum ColumnsRoles in VcsFileChangesModel: { PathColumn = 0, StatusColumn = 1 } (not used in the end)
Overloaded operator < of VcsStatusInfoItem to compare according to the rules
Used QSortFilterProxyModel in patchreviewtoolview to sort the list of changed files
Test Plan: Manually testing revealed no problems.
BUG: 183625
Reviewers: kfunk
Subscribers: kdevelop-devel
Differential Revision: https://phabricator.kde.org/D862