summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcherview.cpp22
1 files changed, 18 insertions, 4 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp
index 33717bc..e15b150 100644
--- a/core/launcher/launcherview.cpp
+++ b/core/launcher/launcherview.cpp
@@ -141,5 +141,5 @@ public:
killTimer ( busytimer );
timerEvent ( 0 );
- busytimer = startTimer ( 180 );
+ busytimer = startTimer ( 200 );
}
else {
@@ -158,5 +158,5 @@ public:
busystate = -4;
- bsy-> repaint ( );
+ QScrollView::updateContents ( bsy-> pixmapRect ( false ));
}
}
@@ -203,5 +203,19 @@ public:
void setBackgroundPixmap( const QPixmap &pm ) {
- bgPixmap = pm;
+ if ( pm. isNull ( )) {
+ bgPixmap = pm;
+ }
+ else {
+ // This is need for bg images with alpha channel
+
+ QPixmap tmp ( pm. size ( ), pm. depth ( ));
+
+ QPainter p ( &tmp );
+ p. fillRect ( 0, 0, pm. width ( ), pm. height ( ), bgColor. isValid ( ) ? bgColor : white );
+ p. drawPixmap ( 0, 0, pm );
+ p. end ( );
+
+ bgPixmap = tmp;
+ }
}
@@ -213,5 +227,5 @@ public:
{
if ( !bgPixmap.isNull() ) {
- p-> fillRect ( r, bgColor );
+ //p-> fillRect ( r, bgColor );
p->drawTiledPixmap( r, bgPixmap,
QPoint( (r.x() + contentsX()) % bgPixmap.width(),