[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 166573] minimum tab width is too wide
From:       Rasto Stanik <rastos_kdebugs () spam ! la>
Date:       2009-05-16 11:10:21
Message-ID: 20090516111021.BCE7916493 () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=166573


Rasto Stanik <rastos_kdebugs@spam.la> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rastos_kdebugs@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 watching all bug changes.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic