Author: coolo Date: Wed Dec 12 11:22:37 2007 New Revision: 43012 URL: http://svn.opensuse.org/viewcvs/yast?rev=43012&view=rev Log: I wish it had helped :) Modified: trunk/qt4/src/QY2Styler.cc Modified: trunk/qt4/src/QY2Styler.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt4/src/QY2Styler.cc?rev=43012&r1=43011&r2=43012&view=diff ============================================================================== --- trunk/qt4/src/QY2Styler.cc (original) +++ trunk/qt4/src/QY2Styler.cc Wed Dec 12 11:22:37 2007 @@ -82,7 +82,8 @@ result.fill( QColor( 0, 128, 0, 0 ) ); QPainter pain( &result ); - pain.drawImage( wid->contentsRect().topLeft(), _backgroundPx[name].scaled( wid->contentsRect().width(), wid->contentsRect().height() ) ); + QImage scaled = _backgroundPx[name].scaled( wid->contentsRect().width(), wid->contentsRect().height() ); + pain.drawImage( wid->contentsRect().topLeft(), scaled, QRectF(QPointF(0,0), scaled.size()), Qt::OrderedAlphaDither); QPalette p = wid->palette(); p.setBrush(QPalette::Window, result ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org