[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/ksysguard/gui/SensorDisplayLib
From:       John Tapsell <john.tapsell () kdemail ! net>
Date:       2009-10-25 14:45:40
Message-ID: 1256481940.468594.21399.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1040088 by johnflux:

Redraw the whole widget if the background image is null


 M  +1 -2      SignalPlotter.cc  


--- trunk/KDE/kdebase/workspace/ksysguard/gui/SensorDisplayLib/SignalPlotter.cc #1040087:1040088
@@ -458,7 +458,6 @@
 {
     if(event->type() == QEvent::ApplicationPaletteChange || event->type() == QEvent::PaletteChange) {
         d->mBackgroundImage = QPixmap(); //we changed a paint setting, so reset the cache
-        d->mPlottingArea = QRect();
         update();
     }
 }
@@ -497,7 +496,7 @@
         return;
     QPainter p(this);
 
-    if(event && d->mPlottingArea.contains(event->rect()))
+    if(event && d->mPlottingArea.contains(event->rect()) && !d->mBackgroundImage.isNull())
         d->drawWidget(&p, QRect(0,0,w, h), true);  // do not bother drawing axis text etc.
     else
         d->drawWidget(&p, QRect(0,0,w, h), false);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic