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.
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.
tested on Mac and Linux
To: rjvbb, #kdevelop
Cc: kdevelop-devel, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KDevelop-devel