Use Client::layoutMetric to access shadowSize instead of shadowCache. This fixes some painting issues for maximized

windows.
This commit is contained in:
Hugo Pereira Da Costa 2011-09-20 14:08:34 +02:00
parent f2e93e1b73
commit f931cd22f9

View file

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