From 6c48adfd2e2296a084567252592c8b73b22b69f7 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 17 Aug 2019 19:23:23 +0900 Subject: kcontrol hw manager: added mapped name information to storage device property dialog. Signed-off-by: Michele Calgaro --- kcontrol/hwmanager/devicepropsdlg.cpp | 4 ++++ kcontrol/hwmanager/devicepropsdlgbase.ui | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'kcontrol/hwmanager') 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(""); base->labelDiskUUID->setText(formatDisplayString(volUUID)); + TQString mappedName = sdevice->mappedName(); + if (mappedName == "") mappedName = i18n(""); + base->labelMappedName->setText(formatDisplayString(mappedName)); + // Show status TQString status_text = ""; 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 @@ -298,6 +298,19 @@ + + unnamed + + + Mapped name: + + + + + labelMappedName + + + unnamed @@ -308,7 +321,7 @@ AlignTop|AlignLeft - + labelDiskStatus -- cgit v1.2.1