use the Svg's frame borders for the height calc; now it looks proper :)
fonts are still bottom-aligned with the icon, but it actually "works" imo much better now that the frame is also properly aligned CCBUG:197187 svn path=/trunk/KDE/kdebase/workspace/; revision=984032
This commit is contained in:
parent
2d24bce243
commit
8f8159950e
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ void TabBox::reset( bool partial_reset )
|
||||||
|
|
||||||
// calculate height of 1 line
|
// calculate height of 1 line
|
||||||
// fontheight + 2 pixel above + 2 pixel below, or 32x32 icon + 4 pixel above + below
|
// fontheight + 2 pixel above + 2 pixel below, or 32x32 icon + 4 pixel above + below
|
||||||
lineHeight = qMax(QFontMetrics( KGlobalSettings::smallestReadableFont() ).height() + 2, 32 + 8);
|
lineHeight = top + bottom + qMax(QFontMetrics( KGlobalSettings::smallestReadableFont() ).height(), 32 );
|
||||||
|
|
||||||
if ( mode() == TabBoxWindowsMode )
|
if ( mode() == TabBoxWindowsMode )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue