mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
solid: rename Solid::Battery::ChargeState::FullCharge to Solid::Battery::ChargeState::FullyCharged
there was FullyCharged enum once? I am guessing so:
4385f0be53/plasma/applets/batterymonitor/contents/code/logic.js (L101)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
649dcbd2a0
commit
2e1544537d
3 changed files with 5 additions and 5 deletions
|
@ -103,7 +103,7 @@ Solid::Battery::ChargeState FakeBattery::chargeState() const
|
|||
}
|
||||
else if (state == "full")
|
||||
{
|
||||
return Solid::Battery::FullCharge;
|
||||
return Solid::Battery::FullyCharged;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -123,7 +123,7 @@ void FakeBattery::setChargeState(Solid::Battery::ChargeState newState)
|
|||
case Solid::Battery::Discharging:
|
||||
name = "discharging";
|
||||
break;
|
||||
case Solid::Battery::FullCharge:
|
||||
case Solid::Battery::FullyCharged:
|
||||
name = "full";
|
||||
break;
|
||||
case Solid::Battery::UnknownCharge:
|
||||
|
|
|
@ -114,7 +114,7 @@ Solid::Battery::ChargeState Battery::chargeState() const
|
|||
} else if (powersupplystatus == QLatin1String("discharging")) {
|
||||
return Solid::Battery::Discharging;
|
||||
} else if (powersupplystatus == QLatin1String("full")) {
|
||||
return Solid::Battery::FullCharge;
|
||||
return Solid::Battery::FullyCharged;
|
||||
}
|
||||
|
||||
return Solid::Battery::UnknownCharge;
|
||||
|
|
|
@ -65,9 +65,9 @@ namespace Solid
|
|||
* - UnknownCharge : Battery state is Unknown
|
||||
* - Charging : Battery is charging
|
||||
* - Discharging : Battery is discharging
|
||||
* - FullCharge : Battery is fully charged
|
||||
* - FullyCharged : Battery is fully charged
|
||||
*/
|
||||
enum ChargeState { UnknownCharge, Charging, Discharging, FullCharge };
|
||||
enum ChargeState { UnknownCharge, Charging, Discharging, FullyCharged };
|
||||
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Reference in a new issue