summaryrefslogtreecommitdiff
path: root/core/applets/batteryapplet/battery.cpp
authordrw <drw>2004-02-18 16:23:17 (UTC)
committer drw <drw>2004-02-18 16:23:17 (UTC)
commit7d16774139aa40fb812d636bcf9ad3f45aa2b9e1 (patch) (side-by-side diff)
tree51dc00c15db884b4f4351ed685e022853446a0d6 /core/applets/batteryapplet/battery.cpp
parent45179e1807aa5ca024b423112303509f91253a53 (diff)
downloadopie-7d16774139aa40fb812d636bcf9ad3f45aa2b9e1.zip
opie-7d16774139aa40fb812d636bcf9ad3f45aa2b9e1.tar.gz
opie-7d16774139aa40fb812d636bcf9ad3f45aa2b9e1.tar.bz2
Fix size and drawing of battery status widget and eliminate compiler warnings
Diffstat (limited to 'core/applets/batteryapplet/battery.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/batteryapplet/battery.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/applets/batteryapplet/battery.cpp b/core/applets/batteryapplet/battery.cpp
index 3b64fb5..9a9ddf6 100644
--- a/core/applets/batteryapplet/battery.cpp
+++ b/core/applets/batteryapplet/battery.cpp
@@ -72,3 +72,3 @@ void BatteryMeter::mousePressEvent( QMouseEvent* e )
-void BatteryMeter::mouseReleaseEvent( QMouseEvent* e)
+void BatteryMeter::mouseReleaseEvent( QMouseEvent* /*e*/ )
{
@@ -112,3 +112,3 @@ void BatteryMeter::chargeTimeout()
if ( percent > 100 )
- percent = 0;
+ percent = 0;
@@ -116,3 +116,3 @@ void BatteryMeter::chargeTimeout()
if ( batteryView )
- batteryView->updatePercent( percent );
+ batteryView->updatePercent( percent );
}
@@ -156,3 +156,3 @@ void BatteryMeter::paintEvent( QPaintEvent* )
- int extra = ((percent * h) % 100)/(100/4);
+ //int extra = ((percent * h) % 100)/(100/4);