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:
Aaron J. Seigo 2009-06-19 19:37:08 +00:00
parent 2d24bce243
commit 8f8159950e

View file

@ -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 )
{ {