Fix minor glitch in battery status dialog

pull/2/head
Timothy Pearson 13 years ago
parent c8c3b71ed2
commit ebf2c049b7

@ -502,7 +502,7 @@ void DevicePropertiesDialog::populateDeviceInformation() {
base->labelMaximumBatteryDesignEnergy->setText((bdevice->maximumDesignEnergy()<0)?i18n("<unknown>"):TQString("%1 Wh").arg(bdevice->maximumDesignEnergy())); base->labelMaximumBatteryDesignEnergy->setText((bdevice->maximumDesignEnergy()<0)?i18n("<unknown>"):TQString("%1 Wh").arg(bdevice->maximumDesignEnergy()));
base->labelMinimumBatteryVoltage->setText((bdevice->minimumVoltage()<0)?i18n("<unknown>"):TQString("%1 V").arg(bdevice->minimumVoltage())); base->labelMinimumBatteryVoltage->setText((bdevice->minimumVoltage()<0)?i18n("<unknown>"):TQString("%1 V").arg(bdevice->minimumVoltage()));
base->labelCurrentBatteryVoltage->setText((bdevice->voltage()<0)?i18n("<unknown>"):TQString("%1 V").arg(bdevice->voltage())); base->labelCurrentBatteryVoltage->setText((bdevice->voltage()<0)?i18n("<unknown>"):TQString("%1 V").arg(bdevice->voltage()));
base->labelCurrentBatteryDischargeRate->setText((bdevice->dischargeRate()<0)?i18n("<unknown>"):TQString("%1 Vh").arg(bdevice->dischargeRate())); base->labelCurrentBatteryDischargeRate->setText((bdevice->dischargeRate()<0)?i18n("<unknown>"):TQString("%1 Wh").arg(bdevice->dischargeRate()));
TQString batteryStatusString = i18n("Unknown"); TQString batteryStatusString = i18n("Unknown");
TDEBatteryStatus::TDEBatteryStatus batteryStatus = bdevice->status(); TDEBatteryStatus::TDEBatteryStatus batteryStatus = bdevice->status();
if (batteryStatus == TDEBatteryStatus::Charging) { if (batteryStatus == TDEBatteryStatus::Charging) {

@ -602,7 +602,7 @@
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Current Discharge Rate</string> <string>Current Charge / Discharge Rate</string>
</property> </property>
</widget> </widget>
<widget class="TQLabel" row="5" column="1" colspan="1"> <widget class="TQLabel" row="5" column="1" colspan="1">

@ -73,23 +73,6 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<spacer row="4" column="0">
<property name="name" stdset="0">
<cstring>Spacer4</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</grid> </grid>
</widget> </widget>
</widget> </widget>

Loading…
Cancel
Save