Vcs: Fix sorting of files in the commit dialog

Authored by apuzio on Jan 27 2016, 9:21 PM.

Description

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:

  1. versioned files before uneversioned
  2. 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

Details

Committed
kfunkFeb 1 2016, 11:15 PM
Differential Revision
D862: [Fixed Bug 183625] Sorting of files in the commit dialog
Parents
R32:5f3e04f5c6c8: Drop VcsFileChangesModel::{indexForUrl, statusInfo}
Branches
Unknown
Tags
Unknown