D20142: DVCS Branch Manager with filtering and sorting proposal
Christian Tacke
noreply at phabricator.kde.org
Sun Mar 31 11:20:18 BST 2019
christiant created this revision.
christiant added projects: VDG, KDevelop.
Herald added a subscriber: kdevelop-devel.
christiant requested review of this revision.
REVISION SUMMARY
The porposal is to utilize QSortFilterProxyModel for sorting and filtering.
When working with on a bigger project with multiple branches some means to find a desired branch for switching or creating a new branch may be considered helpful.
So I added a line edit and a QSortFilterProxyModel to do that for me.
Additionally: new branches are currently appended. Though this makes them easy to find, I think it's counter intuitive and a tad ugly. While the sort mechanism of the Proxy does not help initially, it does upon adding branches.
Drawback: the line edit for filtering may be associated with the "New" button by users. This could make the workflow for that less intuitive.
TEST PLAN
Fire up Git->Branches on a git project.
Make sure all branches are there.
Type in the line edit to filter. Only branches that match should be included.
Clearing the line edit should result in all elements to become visible again.
Create New branch, that should be added to list in alphabetical order.
REPOSITORY
R32 KDevelop
REVISION DETAIL
https://phabricator.kde.org/D20142
AFFECTED FILES
kdevplatform/vcs/dvcs/ui/branchmanager.cpp
kdevplatform/vcs/dvcs/ui/branchmanager.h
kdevplatform/vcs/dvcs/ui/branchmanager.ui
To: christiant
Cc: kdevelop-devel, cblack, arvidhansson, ian, hannahk, Pixel_Lime, jraleigh, gennad, squeakypancakes, alexde, IohannesPetros, GB_2, glebaccon, trickyricky26, mglb, domson, antismap, iodelay, crozbo, ndavis, firef, alexeymin, skadinna, geetamc, Pilzschaf, akshaydeo, surgenight, aaronhoneycutt, arrowd, mbohlender
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20190331/61bcd6a0/attachment.html>
More information about the KDevelop-devel
mailing list