kcontrol hw manager: added mapped name information to storage device property dialog.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/35/head
Michele Calgaro 5 years ago
parent e74e9afe2c
commit 6c48adfd2e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -416,6 +416,10 @@ void DevicePropertiesDialog::populateDeviceInformation() {
if (volUUID == "") volUUID = i18n("<none>"); if (volUUID == "") volUUID = i18n("<none>");
base->labelDiskUUID->setText(formatDisplayString(volUUID)); base->labelDiskUUID->setText(formatDisplayString(volUUID));
TQString mappedName = sdevice->mappedName();
if (mappedName == "") mappedName = i18n("<none>");
base->labelMappedName->setText(formatDisplayString(mappedName));
// Show status // Show status
TQString status_text = "<qt>"; TQString status_text = "<qt>";
if (sdevice->checkDiskStatus(TDEDiskDeviceStatus::Mountable)) { if (sdevice->checkDiskStatus(TDEDiskDeviceStatus::Mountable)) {

@ -298,6 +298,19 @@
</property> </property>
</widget> </widget>
<widget class="TQLabel" row="3" column="0" colspan="1"> <widget class="TQLabel" row="3" column="0" colspan="1">
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="text">
<string>Mapped name:</string>
</property>
</widget>
<widget class="KActiveLabel" row="3" column="1" colspan="1">
<property name="name">
<cstring>labelMappedName</cstring>
</property>
</widget>
<widget class="TQLabel" row="4" column="0" colspan="1">
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
@ -308,7 +321,7 @@
<set>AlignTop|AlignLeft</set> <set>AlignTop|AlignLeft</set>
</property> </property>
</widget> </widget>
<widget class="KActiveLabel" row="3" column="1" colspan="1"> <widget class="KActiveLabel" row="4" column="1" colspan="1">
<property name="name"> <property name="name">
<cstring>labelDiskStatus</cstring> <cstring>labelDiskStatus</cstring>
</property> </property>

Loading…
Cancel
Save