summaryrefslogtreecommitdiff
path: root/core/applets/batteryapplet/battery.h
Side-by-side diff
Diffstat (limited to 'core/applets/batteryapplet/battery.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/batteryapplet/battery.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/applets/batteryapplet/battery.h b/core/applets/batteryapplet/battery.h
index c2d1216..622c083 100644
--- a/core/applets/batteryapplet/battery.h
+++ b/core/applets/batteryapplet/battery.h
@@ -14,44 +14,45 @@
** See http://www.trolltech.com/gpl/ for GPL licensing information.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/
#ifndef BATTERY_H
#define BATTERY_H
#include <qwidget.h>
#include <qguardedptr.h>
class PowerStatus;
class BatteryStatus;
class QTimer;
class BatteryMeter : public QWidget
{
Q_OBJECT
public:
BatteryMeter( QWidget *parent = 0 );
~BatteryMeter();
QSize sizeHint() const;
+ static int position();
protected:
void timerEvent( QTimerEvent* );
void paintEvent( QPaintEvent* );
void mousePressEvent( QMouseEvent* );
void mouseReleaseEvent( QMouseEvent* );
protected slots:
void chargeTimeout();
protected:
QGuardedPtr<BatteryStatus> batteryView;
PowerStatus *ps;
QTimer *chargeTimer;
int percent;
bool charging;
int style;
};
#endif