From cc964541dce909aa557b7f07d00b63c4578a00ee Mon Sep 17 00:00:00 2001 From: skyhusker Date: Tue, 14 Jun 2005 18:14:38 +0000 Subject: Fix bugs #1384 and #1546 --- (limited to 'core/applets/batteryapplet/battery.cpp') diff --git a/core/applets/batteryapplet/battery.cpp b/core/applets/batteryapplet/battery.cpp index e85a9da..fa95b2b 100644 --- a/core/applets/batteryapplet/battery.cpp +++ b/core/applets/batteryapplet/battery.cpp @@ -132,6 +132,8 @@ void BatteryMeter::paintEvent( QPaintEvent* ) { QPainter p(this); QFont f( "Fixed", AppLnk::smallIconSize()/2 ); QFontMetrics fm( f ); + //Avoid text overlapping + p.eraseRect( 0, 0, 20, 20 ); p.setFont( f ); p.drawText( 0, height()/2, QString::number( percent ) ); p.drawText( width()/4, height(), "%" ); -- cgit v0.9.0.2