summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-01-14 22:44:15 (UTC)
committer harlekin <harlekin>2003-01-14 22:44:15 (UTC)
commita3f38b108a5197d50a0fd7bc27fa204578a48d72 (patch) (side-by-side diff)
tree3e53aed9d902f6eecbffd3e6e04ec4da9d96168e
parenteb14b813e5cdb1f9fa9abd28f9301de88f5c6d1c (diff)
downloadopie-a3f38b108a5197d50a0fd7bc27fa204578a48d72.zip
opie-a3f38b108a5197d50a0fd7bc27fa204578a48d72.tar.gz
opie-a3f38b108a5197d50a0fd7bc27fa204578a48d72.tar.bz2
changed caption, took for ipaq out
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/batteryapplet/batterystatus.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/applets/batteryapplet/batterystatus.cpp b/core/applets/batteryapplet/batterystatus.cpp
index 2af3e99..28d6275 100644
--- a/core/applets/batteryapplet/batterystatus.cpp
+++ b/core/applets/batteryapplet/batterystatus.cpp
@@ -1,51 +1,51 @@
#include "batterystatus.h"
#include <qpe/power.h>
#include <opie/odevice.h>
#include <qpainter.h>
#include <qpushbutton.h>
#include <qdrawutil.h>
#include <qfile.h>
#include <qtextstream.h>
#include <qmessagebox.h>
using namespace Opie;
BatteryStatus::BatteryStatus( const PowerStatus *p, QWidget *parent )
: QWidget( parent, 0, WDestructiveClose), ps(p) {
- setCaption( tr("Battery status for Ipaq") );
+ setCaption( tr("Battery status") );
QPushButton *pb = new QPushButton( tr("Close"), this );
pb->move( 70, 250 );
pb->setMaximumHeight(20);
pb->show();
if ( ODevice::inst ( )-> series ( ) == Model_iPAQ ) {
getProcApmStatusIpaq();
}
connect( pb, SIGNAL( clicked() ), this, SLOT( close() ) );
percent = ps->batteryPercentRemaining();
show();
}
BatteryStatus::~BatteryStatus()
{
}
/*
* Make use of the advanced apm interface of the ipaq
*/
bool BatteryStatus::getProcApmStatusIpaq() {
bat2 = false;
QFile procApmIpaq("/proc/hal/battery");
if (procApmIpaq.open(IO_ReadOnly) ) {
QStringList list;
// since it is /proc we _must_ use QTextStream
QTextStream stream ( &procApmIpaq);
QString streamIn;
streamIn = stream.read();
list = QStringList::split("\n", streamIn);