author | sandman <sandman> | 2002-06-27 22:03:59 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-06-27 22:03:59 (UTC) |
commit | 49710f20cf0e52ea3393027ed066f11e977e3457 (patch) (side-by-side diff) | |
tree | 9840e5abb500042efdcd857ba837bdfe673e2485 /core/applets/volumeapplet/oledbox.cpp | |
parent | c9871ef295afed6bc4f4cc5451f46bf3b6e8d462 (diff) | |
download | opie-49710f20cf0e52ea3393027ed066f11e977e3457.zip opie-49710f20cf0e52ea3393027ed066f11e977e3457.tar.gz opie-49710f20cf0e52ea3393027ed066f11e977e3457.tar.bz2 |
Workaround for the "LEDs dont't show on 38xx" aka "Qt/E is too dumb to
draw a circle" bug
Diffstat (limited to 'core/applets/volumeapplet/oledbox.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/applets/volumeapplet/oledbox.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/applets/volumeapplet/oledbox.cpp b/core/applets/volumeapplet/oledbox.cpp index 3036929..7547287 100644 --- a/core/applets/volumeapplet/oledbox.cpp +++ b/core/applets/volumeapplet/oledbox.cpp @@ -150,4 +150,6 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK QPen pen; + pix-> fill ( black ); + // First of all we want to know what area should be updated // Initialize coordinates, width, and height of the LED @@ -220,4 +222,7 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK #ifdef _QTE_IS_TOO_DUMB_TO_DRAW_AN_ARC paint. drawPixmap ( 0, 0, *s_border_pix ); + paint. end ( ); + + pix-> setMask ( pix-> createHeuristicMask ( )); #else @@ -254,5 +259,4 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK } // end if ( angle < 2320 ) } // end for ( angle = 720; angle < 6480; angle += 160 ) -#endif paint.end(); // @@ -267,4 +271,5 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK pix-> setMask ( mask ); +#endif } |