[Konsole-devel] [Bug 157201] tab names in konsole should have a maximum size

Robert Knight robertknight at gmail.com
Tue May 6 14:52:08 UTC 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=157201         




------- Additional Comments From robertknight gmail com  2008-05-06 16:52 -------
> use a QFontMetric for QFont of tabText (Really how can you query for
> the QFont of QTabBar ? )

QWidget::font()

> crop the over-laying characters by comparing with tabRect ,
> and add the "..." if a crop is done. 

The size of the rect returned by tabRect() depends on the length of the tab's text.  In other words, tabRect() expands to accommodate the text.   

> The fix works ok, but it is also ugly. 

It looks fine from my perspective.  If you can attach a screenshot showing the problem I'll see if I can come up with a solution.



More information about the konsole-devel mailing list