summaryrefslogtreecommitdiff
path: root/core/applets/batteryapplet
authormickeyl <mickeyl>2003-05-10 17:20:32 (UTC)
committer mickeyl <mickeyl>2003-05-10 17:20:32 (UTC)
commitd563040b1ccf4678f056626525d605e8bcba07ef (patch) (side-by-side diff)
treec36b8e48c5fe2df876769315843d9e60f0931c79 /core/applets/batteryapplet
parente858fffe853c2893775c202c52ba1d4898e723bc (diff)
downloadopie-d563040b1ccf4678f056626525d605e8bcba07ef.zip
opie-d563040b1ccf4678f056626525d605e8bcba07ef.tar.gz
opie-d563040b1ccf4678f056626525d605e8bcba07ef.tar.bz2
do a full repaint if style != 0
Diffstat (limited to 'core/applets/batteryapplet') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/batteryapplet/battery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/applets/batteryapplet/battery.cpp b/core/applets/batteryapplet/battery.cpp
index eee3ed3..078ce8d 100644
--- a/core/applets/batteryapplet/battery.cpp
+++ b/core/applets/batteryapplet/battery.cpp
@@ -62,7 +62,7 @@ void BatteryMeter::mousePressEvent( QMouseEvent* e )
Config c( "qpe" );
c.setGroup( "Battery" );
c.writeEntry( "Style", style );
- repaint();
+ repaint( true );
}
QWidget::mousePressEvent( e );
}
@@ -97,7 +97,7 @@ void BatteryMeter::timerEvent( QTimerEvent * )
if ( batteryView )
batteryView->updatePercent( percent );
}
- repaint(FALSE);
+ repaint( style != 0 );
if ( batteryView )
batteryView->repaint();
}