Summary: | Konsole should make better use of the available space of the tab bar | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | qqqqqqqqq9 |
Component: | tabbar | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | adaptee, mwoehlke.floss, robertknight |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
qqqqqqqqq9
2009-12-15 22:17:25 UTC
I don't think this needs an option - just a smarter algorithm to make better use of the available space. This bugs me also. I agree there is no need for an option; just make use of the available space. There is Qt code to guess how much space a text string will take. I presume Konsole knows (or can query) the width of the tabs? If so, on relayout, just query the text width and, if it fits, display the whole text. If not, query the width of just the ellipsis and from there do a binary search to determine how many characters will fit. I can dig up some code for 'how much space will this string take' if needed, but probably would not get to it until after the new year. the tab width was change a while ago so this shouldn't be as bad as it was. |