Correct QBatteryInfo::currentFlow method for Discharging state on Linux
authormibrunin <michael.bruning@digia.com>
Wed, 17 Oct 2012 14:19:29 +0000 (16:19 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 17 Oct 2012 18:00:25 +0000 (20:00 +0200)
commit620592b4bc2fb4f92cfbd6f09eeafb31b30cb941
tree8dddf0a22b8667f1b245afc3a9ca472bc8bad1ac
parent3ac719bb6ee535b716ef5b23a1e194946c033dca
Correct QBatteryInfo::currentFlow method for Discharging state on Linux

Added some logic that ensures that the flow has the correct polarity
when the battery is in Discharging state. This is necessary as some
linux kernel versions seem to return correct polarity already, while
others do not.

Change-Id: Ib8f058acec8298e7d4eb364dba1b0dff66a9f10f
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
src/systeminfo/qbatteryinfo_linux.cpp