From: Arkadiusz Miśkiewicz Date: Thu, 8 Aug 2013 08:17:36 +0000 (+0200) Subject: - up to 4.11.0 X-Git-Tag: auto/th/kde4-kdelibs-4.11.0-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=ec99af272ff3893b6c5f670623773e76afccf081;p=packages%2Fkde4-kdelibs.git - up to 4.11.0 --- diff --git a/kde4-kdelibs-multibattery.patch b/kde4-kdelibs-multibattery.patch deleted file mode 100644 index b313a06..0000000 --- a/kde4-kdelibs-multibattery.patch +++ /dev/null @@ -1,394 +0,0 @@ -diff --git a/solid/solid/backends/fakehw/fakebattery.cpp b/solid/solid/backends/fakehw/fakebattery.cpp -index 0afe765..147cea0 100644 ---- a/solid/solid/backends/fakehw/fakebattery.cpp -+++ b/solid/solid/backends/fakehw/fakebattery.cpp -@@ -85,11 +85,26 @@ int FakeBattery::chargePercent() const - return percent; - } - -+int FakeBattery::capacity() const -+{ -+ int last_full = fakeDevice()->property("lastFullLevel").toInt(); -+ int max = fakeDevice()->property("maxLevel").toInt(); -+ -+ int percent = (100 * last_full) / max; -+ -+ return percent; -+} -+ - bool FakeBattery::isRechargeable() const - { - return fakeDevice()->property("isRechargeable").toBool(); - } - -+bool FakeBattery::isPowerSupply() const -+{ -+ return fakeDevice()->property("isPowerSupply").toBool(); -+} -+ - Solid::Battery::ChargeState FakeBattery::chargeState() const - { - QString state = fakeDevice()->property("chargeState").toString(); -diff --git a/solid/solid/backends/fakehw/fakebattery.h b/solid/solid/backends/fakehw/fakebattery.h -index c7e2791..f832a1a 100644 ---- a/solid/solid/backends/fakehw/fakebattery.h -+++ b/solid/solid/backends/fakehw/fakebattery.h -@@ -44,8 +44,10 @@ public Q_SLOTS: - virtual Solid::Battery::BatteryType type() const; - - virtual int chargePercent() const; -+ virtual int capacity() const; - - virtual bool isRechargeable() const; -+ virtual bool isPowerSupply() const; - virtual Solid::Battery::ChargeState chargeState() const; - - void setChargeState(Solid::Battery::ChargeState newState); -diff --git a/solid/solid/backends/fakehw/fakecomputer.xml b/solid/solid/backends/fakehw/fakecomputer.xml -index fe7e323..f33a32b 100644 ---- a/solid/solid/backends/fakehw/fakecomputer.xml -+++ b/solid/solid/backends/fakehw/fakecomputer.xml -@@ -32,9 +32,22 @@ - mV - 11999 - true -+ true -+ discharging -+ -+ -+ Miraculous Mouse -+ Orange Inc. -+ Battery -+ /org/kde/solid/fakehw/computer -+ false -+ mouse -+ -+ true -+ true - discharging - -- - - -