summaryrefslogtreecommitdiff
authorharlekin <harlekin>2004-04-25 18:03:55 (UTC)
committer harlekin <harlekin>2004-04-25 18:03:55 (UTC)
commit22d51bcaa58b90a3ffd4d429c43e6c24e1694ab3 (patch) (side-by-side diff)
treea4027f012a4bfe2596a35fadf0ed6409ac3278f4
parent37b6ddee96e789bcc3b4fdd2828889efa3adabc4 (diff)
downloadopie-22d51bcaa58b90a3ffd4d429c43e6c24e1694ab3.zip
opie-22d51bcaa58b90a3ffd4d429c43e6c24e1694ab3.tar.gz
opie-22d51bcaa58b90a3ffd4d429c43e6c24e1694ab3.tar.bz2
show applet fullscreen
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/batteryapplet/battery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/applets/batteryapplet/battery.cpp b/core/applets/batteryapplet/battery.cpp
index 18e368e..98b61b5 100644
--- a/core/applets/batteryapplet/battery.cpp
+++ b/core/applets/batteryapplet/battery.cpp
@@ -62,49 +62,49 @@ QSize BatteryMeter::sizeHint() const
return QSize(QMAX(AppLnk::smallIconSize()*3/4, 6), height() );
}
void BatteryMeter::mousePressEvent( QMouseEvent* e )
{
if ( e->button() == RightButton )
{
style = 1-style;
Config c( "qpe" );
c.setGroup( "Battery" );
c.writeEntry( "Style", style );
repaint( true );
}
QWidget::mousePressEvent( e );
}
void BatteryMeter::mouseReleaseEvent( QMouseEvent* /*e*/ )
{
if ( batteryView && batteryView->isVisible() ) {
delete (QWidget *) batteryView;
} else {
if ( !batteryView ) batteryView = new BatteryStatus( ps );
QPEApplication::showWidget( batteryView );
batteryView->raise();
- batteryView->show();
+ batteryView->showMaximized();
}
}
void BatteryMeter::timerEvent( QTimerEvent * )
{
PowerStatus prev = *ps;
*ps = PowerStatusManager::readStatus();
if ( prev != *ps ) {
percent = ps->batteryPercentRemaining();
if ( !charging && ps->batteryStatus() == PowerStatus::Charging ) {
percent = 0;
charging = true;
chargeTimer->start( 500 );
} else if ( charging && ps->batteryStatus() != PowerStatus::Charging ) {
charging = false;
chargeTimer->stop();
if ( batteryView )
batteryView->updatePercent( percent );
}
repaint( style != 0 );
if ( batteryView )
batteryView->repaint();