D6184: restore horizontal scrollbar in the project manager plugin
René J.V. Bertin
noreply at phabricator.kde.org
Sun Jun 11 16:07:38 UTC 2017
rjvbb created this revision.
rjvbb added a project: KDevelop.
Restricted Application added a subscriber: kdevelop-devel.
REVISION SUMMARY
An old comment in the ProjectManagerView ctor mentions a horizontal scrollbar, something I cannot remember having seen in the KDevelop5 project manager, and that I've sorely missed.
This patch restores that feature, doing away with elided filename representation. The crucial change is setting `setStretchLastSection(false)` and the addition of a resizeEvent filter that sets the header's minimum section size appropriately. This was copied from Qt Creator's navigator widget implementation.
The tooltip feature showing the full filename remains functional so I think (and hope) there is no need to provide a UI configuration option to allow users to select either the new or the old behaviour.
TEST PLAN
tested on Mac and Linux
REPOSITORY
R33 KDevPlatform
REVISION DETAIL
https://phabricator.kde.org/D6184
AFFECTED FILES
plugins/projectmanagerview/projectmanagerview.cpp
plugins/projectmanagerview/projectmanagerview.ui
plugins/projectmanagerview/projectmodelitemdelegate.cpp
plugins/projectmanagerview/projecttreeview.cpp
plugins/projectmanagerview/projecttreeview.h
To: rjvbb, #kdevelop
Cc: kdevelop-devel, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20170611/77141f52/attachment.html>
More information about the KDevelop-devel
mailing list