fixed horizontal positionning of background pixmap.

icc-effect-5.14.5
Hugo Pereira Da Costa 2011-04-20 10:57:40 +02:00
parent 82d3524353
commit 77dd014d8a
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -132,8 +132,6 @@ namespace Oxygen
// read shadowCache configuration
changed |= shadowCache().readConfig( config );
if( changed )
{ helper().setBackgroundPixmapOffset( QPoint( shadowCache().shadowSize(), 0 ) ); }
// background pixmap
{