fixed horizontal positionning of background pixmap.
parent
82d3524353
commit
77dd014d8a
|
@ -594,6 +594,11 @@ namespace Oxygen
|
|||
height -= 3;
|
||||
}
|
||||
|
||||
// background pixmap
|
||||
QPoint backgroundPixmapOffset( layoutMetric( LM_OuterPaddingLeft ) + layoutMetric( LM_BorderLeft ), 0 );
|
||||
if( isMaximized() ) backgroundPixmapOffset += QPoint( 0, 3 );
|
||||
helper().setBackgroundPixmapOffset( backgroundPixmapOffset );
|
||||
|
||||
const QWidget* window( isPreview() ? this->widget() : widget->window() );
|
||||
helper().renderWindowBackground(painter, rect, widget, window, palette, offset, height );
|
||||
|
||||
|
|
|
@ -132,8 +132,6 @@ namespace Oxygen
|
|||
|
||||
// read shadowCache configuration
|
||||
changed |= shadowCache().readConfig( config );
|
||||
if( changed )
|
||||
{ helper().setBackgroundPixmapOffset( QPoint( shadowCache().shadowSize(), 0 ) ); }
|
||||
|
||||
// background pixmap
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue