I wish it had helped :)
authorcoolo <coolo@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Wed, 12 Dec 2007 10:22:37 +0000 (10:22 +0000)
committercoolo <coolo@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Wed, 12 Dec 2007 10:22:37 +0000 (10:22 +0000)
git-svn-id: http://svn.opensuse.org/svn/yast/trunk/qt4@43012 e0cc52ee-31ee-0310-8b87-e83c4596d67c

src/QY2Styler.cc

index b5d05b3..dd9744b 100644 (file)
@@ -82,7 +82,8 @@ bool QY2Styler::eventFilter( QObject * obj, QEvent * ev )
         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 );