fixed background positionning when title bar is hidden
svn path=/trunk/KDE/kdebase/workspace/; revision=1112325
This commit is contained in:
parent
6ffa8df90f
commit
c9490235cd
1 changed files with 2 additions and 1 deletions
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue