fixed background positionning when title bar is hidden

svn path=/trunk/KDE/kdebase/workspace/; revision=1112325
This commit is contained in:
Hugo Pereira Da Costa 2010-04-07 21:23:38 +00:00
parent 6ffa8df90f
commit c9490235cd

View file

@ -573,7 +573,8 @@ namespace Oxygen
} else { } else {
int offset = layoutMetric( LM_OuterPaddingTop ); 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() ); const QWidget* window( isPreview() ? OxygenClient::widget() : widget->window() );
helper().renderWindowBackground(painter, rect, widget, window, palette, offset, height ); helper().renderWindowBackground(painter, rect, widget, window, palette, offset, height );