equal
deleted
inserted
replaced
48 |
48 |
49 void delayedConstruction(); |
49 void delayedConstruction(); |
50 |
50 |
51 inline int type() const { return Type; } |
51 inline int type() const { return Type; } |
52 int level() const; |
52 int level() const; |
|
53 bool isCharging() const; |
53 |
54 |
54 public slots: |
55 public slots: |
55 virtual void createPrimitives(); |
56 virtual void createPrimitives(); |
56 virtual void updatePrimitives(); |
57 virtual void updatePrimitives(); |
57 |
58 |
58 void setLevel(int levelPercent); |
59 void setLevel(int levelPercent); |
59 |
60 |
|
61 signals: |
|
62 void levelChanged(); |
|
63 |
60 protected: |
64 protected: |
61 void timerEvent(QTimerEvent *event); |
65 void timerEvent(QTimerEvent *event); |
62 void initStyleOption(HbStyleOptionBatteryIndicator *option) const; |
66 void initStyleOption(HbStyleOptionBatteryIndicator *option) const; |
|
67 bool event(QEvent *event); |
63 |
68 |
64 private: |
69 private: |
65 Q_DECLARE_PRIVATE_D(d_ptr, HbBatteryIndicator) |
70 Q_DECLARE_PRIVATE_D(d_ptr, HbBatteryIndicator) |
66 Q_DISABLE_COPY(HbBatteryIndicator) |
71 Q_DISABLE_COPY(HbBatteryIndicator) |
67 |
72 |