diff options
author | Michele Calgaro <[email protected]> | 2019-08-17 19:23:23 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-10-17 10:48:28 +0800 |
commit | 6c48adfd2e2296a084567252592c8b73b22b69f7 (patch) | |
tree | 8d4eeda6089c337917b3e29c3fac65a1240d1912 /kcontrol/hwmanager | |
parent | e74e9afe2c46389b709411f7c2f6012bdfb3a0e8 (diff) | |
download | tdebase-6c48adfd2e2296a084567252592c8b73b22b69f7.tar.gz tdebase-6c48adfd2e2296a084567252592c8b73b22b69f7.zip |
kcontrol hw manager: added mapped name information to storage device property dialog.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kcontrol/hwmanager')
-rw-r--r-- | kcontrol/hwmanager/devicepropsdlg.cpp | 4 | ||||
-rw-r--r-- | kcontrol/hwmanager/devicepropsdlgbase.ui | 15 |
2 files changed, 18 insertions, 1 deletions
diff --git a/kcontrol/hwmanager/devicepropsdlg.cpp b/kcontrol/hwmanager/devicepropsdlg.cpp index 18ac13f7a..05b5832fa 100644 --- a/kcontrol/hwmanager/devicepropsdlg.cpp +++ b/kcontrol/hwmanager/devicepropsdlg.cpp @@ -416,6 +416,10 @@ void DevicePropertiesDialog::populateDeviceInformation() { if (volUUID == "") volUUID = i18n("<none>"); base->labelDiskUUID->setText(formatDisplayString(volUUID)); + TQString mappedName = sdevice->mappedName(); + if (mappedName == "") mappedName = i18n("<none>"); + base->labelMappedName->setText(formatDisplayString(mappedName)); + // Show status TQString status_text = "<qt>"; if (sdevice->checkDiskStatus(TDEDiskDeviceStatus::Mountable)) { diff --git a/kcontrol/hwmanager/devicepropsdlgbase.ui b/kcontrol/hwmanager/devicepropsdlgbase.ui index 48fcf7d75..b6c53c331 100644 --- a/kcontrol/hwmanager/devicepropsdlgbase.ui +++ b/kcontrol/hwmanager/devicepropsdlgbase.ui @@ -302,13 +302,26 @@ <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"> + <cstring>unnamed</cstring> + </property> + <property name="text"> <string>Status:</string> </property> <property name="alignment"> <set>AlignTop|AlignLeft</set> </property> </widget> - <widget class="KActiveLabel" row="3" column="1" colspan="1"> + <widget class="KActiveLabel" row="4" column="1" colspan="1"> <property name="name"> <cstring>labelDiskStatus</cstring> </property> |