Remove redundant informations of LVM PV from infopane.

This commit is contained in:
Chantara Tith 2016-08-01 04:30:22 +07:00 committed by Andrius Štikonas
parent 89d310e0c8
commit 12e373dd45
1 changed files with 3 additions and 4 deletions

View File

@ -133,11 +133,10 @@ void InfoPane::showPartition(Qt::DockWidgetArea area, const Partition& p)
createLabels(i18nc("@label partition", "Capacity:"), Capacity::formatByteSize(p.capacity()), cols(area), x, y);
createLabels(i18nc("@label partition", "Available:"), Capacity::formatByteSize(p.available()), cols(area), x, y);
createLabels(i18nc("@label partition", "Used:"), Capacity::formatByteSize(p.used()), cols(area), x, y);
createLabels(i18nc("@label partition", "PV Size:"), Capacity::formatByteSize(FS::lvm2_pv::getPVSize(deviceNode)), cols(area), x, y);
createLabels(i18nc("@label partition", "PE Size:"), Capacity::formatByteSize(FS::lvm2_pv::getPESize(deviceNode)), cols(area), x, y);
createLabels(i18nc("@label partition", "Total PE :"), QString::number(FS::lvm2_pv::getTotalPE(deviceNode)), cols(area), x, y);
createLabels(i18nc("@label partition", "Free PE:"), QString::number(FS::lvm2_pv::getFreePE(deviceNode)), cols(area), x, y);
createLabels(i18nc("@label partition", "Allocated PE:"), QString::number(FS::lvm2_pv::getAllocatedPE(deviceNode)), cols(area), x, y);
createLabels(i18nc("@label partition", "Total PE:"), QString::number(FS::lvm2_pv::getTotalPE(deviceNode)), cols(area), x, y);
createLabels(i18nc("@label partition", "Free PE:"), QString::number(FS::lvm2_pv::getFreePE(deviceNode)), cols(area), x, y);
createLabels(i18nc("@label partition", "Allocated PE:"), QString::number(FS::lvm2_pv::getAllocatedPE(deviceNode)), cols(area), x, y);
createLabels(i18nc("@label partition", "First sector:"), QLocale().toString(p.firstSector()), cols(area), x, y);
createLabels(i18nc("@label partition", "Last sector:"), QLocale().toString(p.lastSector()), cols(area), x, y);
createLabels(i18nc("@label partition", "Number of sectors:"), QLocale().toString(p.length()), cols(area), x, y);