Use Client::layoutMetric to access shadowSize instead of shadowCache. This fixes some painting issues for maximized
windows.
This commit is contained in:
parent
f2e93e1b73
commit
f931cd22f9
1 changed files with 2 additions and 5 deletions
|
@ -650,9 +650,7 @@ namespace Oxygen
|
|||
}
|
||||
|
||||
QRect r = (isPreview()) ? this->widget()->rect():window->rect();
|
||||
|
||||
const qreal shadowSize( shadowCache().shadowSize() );
|
||||
r.adjust( shadowSize, shadowSize, -shadowSize, -shadowSize );
|
||||
r.adjust( layoutMetric( LM_OuterPaddingLeft ), layoutMetric( LM_OuterPaddingTop ), -layoutMetric( LM_OuterPaddingRight ), -layoutMetric( LM_OuterPaddingBottom ) );
|
||||
r.adjust(0,0, 1, 1);
|
||||
|
||||
// base color
|
||||
|
@ -794,8 +792,7 @@ namespace Oxygen
|
|||
}
|
||||
|
||||
QRect r = (isPreview()) ? this->widget()->rect():window->rect();
|
||||
qreal shadowSize( shadowCache().shadowSize() );
|
||||
r.adjust( shadowSize, shadowSize, -shadowSize, -shadowSize );
|
||||
r.adjust( layoutMetric( LM_OuterPaddingLeft ), layoutMetric( LM_OuterPaddingTop ), -layoutMetric( LM_OuterPaddingRight ), -layoutMetric( LM_OuterPaddingBottom ) );
|
||||
|
||||
// dimensions
|
||||
const int titleHeight = layoutMetric(LM_TitleHeight);
|
||||
|
|
Loading…
Reference in a new issue