[Konsole-devel] [Bug 166573] minimum tab width is too wide

Rasto Stanik rastos_kdebugs at spam.la
Sat May 16 11:10:20 UTC 2009


Rasto Stanik <rastos_kdebugs at spam.la> changed:

           What    |Removed                     |Added
                 CC|                            |rastos_kdebugs at spam.la

--- Comment #3 from Rasto Stanik <rastos_kdebugs spam la>  2009-05-16 13:10:02 ---
I figured how to do it. With Qt 4.5 there is a new property for QTabBar widget
which has name "expanding" and defaults to "true". If set to "false" (for
example in TabbedViewContainer constructor) you can specify the new width by
changing ViewContainerTabBar::tabSizeHint(). All that in in
apps/konsole/src/ViewContainer.cpp in kdebase.

Now the question is - what is the desired width? Do we want 
- a fixed width
- to fit the text of tab name 
- to fit the text of tab name with upper limit (perhaps with a tooltip?)
- something else
The 1st option is easiest - just say the number of pixels. For 2nd and 3rd - I
would need to figure out the length of string in pixels based on font ... no
idea how difficult is that.

Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the konsole-devel mailing list