fixed background positionning when title bar is hidden

svn path=/trunk/KDE/kdebase/workspace/; revision=1112325
icc-effect-5.14.5
Hugo Pereira Da Costa 2010-04-07 21:23:38 +00:00
parent 6ffa8df90f
commit c9490235cd
1 changed files with 2 additions and 1 deletions

View File

@ -573,7 +573,8 @@ namespace Oxygen
} else {
int offset = layoutMetric( LM_OuterPaddingTop );
int height = 64 + configuration().buttonSize() - OxygenConfiguration::ButtonDefault;
int height = 64 - OxygenConfiguration::ButtonDefault;
if( !configuration().hideTitleBar() ) height += configuration().buttonSize();
const QWidget* window( isPreview() ? OxygenClient::widget() : widget->window() );
helper().renderWindowBackground(painter, rect, widget, window, palette, offset, height );