Mailinglist Archive: yast-commit (683 mails)

< Previous Next >
[yast-commit] r43001 - /trunk/qt4/src/QY2Styler.cc
  • From: coolo@xxxxxxxxxxxxxxxx
  • Date: Tue, 11 Dec 2007 21:21:16 -0000
  • Message-id: <20071211212117.18FF12422F@xxxxxxxxxxxxxxxx>
Author: coolo
Date: Tue Dec 11 22:21:16 2007
New Revision: 43001

URL: http://svn.opensuse.org/viewcvs/yast?rev=43001&view=rev
Log:
also work if there are two wizards layered over each other
(which the installation for whatever reason does)

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=43001&r1=43000&r2=43001&view=diff
==============================================================================
--- trunk/qt4/src/QY2Styler.cc (original)
+++ trunk/qt4/src/QY2Styler.cc Tue Dec 11 22:21:16 2007
@@ -72,14 +72,15 @@
{
QString back = _backgroundFn[ name ];
_backgroundPx[ name ] = QImage( back );
- wid->setAutoFillBackground( true );
qDebug( "loading %s for %s", qPrintable( back ), qPrintable( name ) );
}

+ wid->setAutoFillBackground( true );
+
QPixmap result( wid->size() );
- if ( wid->contentsRect() != wid->rect() )
+ if ( wid->contentsRect() != wid->rect() )
result.fill( QColor( 0, 128, 0, 0 ) );
-
+
QPainter pain( &result );
pain.drawImage( wid->contentsRect().topLeft(), _backgroundPx[name].scaled(
wid->contentsRect().width(), wid->contentsRect().height() ) );


--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages