Use the new battery polling support in tdehwlib

This resolves Bug 1992
pull/1/head
Francois Andriot 11 years ago committed by Timothy Pearson
parent ab2574981c
commit f43aac0e44

@ -65,7 +65,7 @@ Battery::Battery( TQString _udi ) {
if (trace) kdDebug() << funcinfo << "IN , udi: " << udi << endl; if (trace) kdDebug() << funcinfo << "IN , udi: " << udi << endl;
m_hwdevices = TDEGlobal::hardwareDevices(); m_hwdevices = TDEGlobal::hardwareDevices();
m_hwdevices->setTriggerlessHardwareUpdatesEnabled(true); m_hwdevices->setBatteryUpdatesEnabled(true);
udi = _udi; udi = _udi;

@ -48,7 +48,7 @@ CPUInfo::CPUInfo() {
numOfCPUs = -1; numOfCPUs = -1;
m_hwdevices = TDEGlobal::hardwareDevices(); m_hwdevices = TDEGlobal::hardwareDevices();
m_hwdevices->setTriggerlessHardwareUpdatesEnabled(true); m_hwdevices->setBatteryUpdatesEnabled(true);
kdDebugFuncOut(trace); kdDebugFuncOut(trace);
} }

Loading…
Cancel
Save