summaryrefslogtreecommitdiff
path: root/core/applets
authormickeyl <mickeyl>2003-05-10 17:20:32 (UTC)
committer mickeyl <mickeyl>2003-05-10 17:20:32 (UTC)
commitd563040b1ccf4678f056626525d605e8bcba07ef (patch) (unidiff)
treec36b8e48c5fe2df876769315843d9e60f0931c79 /core/applets
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') (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
@@ -59,13 +59,13 @@ void BatteryMeter::mousePressEvent( QMouseEvent* e )
59 if ( e->button() == RightButton ) 59 if ( e->button() == RightButton )
60 { 60 {
61 style = 1-style; 61 style = 1-style;
62 Config c( "qpe" ); 62 Config c( "qpe" );
63 c.setGroup( "Battery" ); 63 c.setGroup( "Battery" );
64 c.writeEntry( "Style", style ); 64 c.writeEntry( "Style", style );
65 repaint(); 65 repaint( true );
66 } 66 }
67 QWidget::mousePressEvent( e ); 67 QWidget::mousePressEvent( e );
68} 68}
69 69
70void BatteryMeter::mouseReleaseEvent( QMouseEvent* e) 70void BatteryMeter::mouseReleaseEvent( QMouseEvent* e)
71{ 71{
@@ -94,13 +94,13 @@ void BatteryMeter::timerEvent( QTimerEvent * )
94 } else if ( charging && ps->batteryStatus() != PowerStatus::Charging ) { 94 } else if ( charging && ps->batteryStatus() != PowerStatus::Charging ) {
95 charging = false; 95 charging = false;
96 chargeTimer->stop(); 96 chargeTimer->stop();
97 if ( batteryView ) 97 if ( batteryView )
98 batteryView->updatePercent( percent ); 98 batteryView->updatePercent( percent );
99 } 99 }
100 repaint(FALSE); 100 repaint( style != 0 );
101 if ( batteryView ) 101 if ( batteryView )
102 batteryView->repaint(); 102 batteryView->repaint();
103 } 103 }
104} 104}
105 105
106void BatteryMeter::chargeTimeout() 106void BatteryMeter::chargeTimeout()