Remove obsolete CHS information.
This commit is contained in:
parent
73fef8d69c
commit
3aed3ccd93
|
@ -109,12 +109,7 @@ void DevicePropsDialog::setupDialog()
|
|||
if (device().type() == Device::Disk_Device) {
|
||||
|
||||
const DiskDevice& disk = dynamic_cast<const DiskDevice&>(device());
|
||||
const QString cyls = QLocale().toString((disk.cylinders()));
|
||||
const QString heads = QLocale().toString((disk.heads()));
|
||||
const QString sectors = QLocale().toString((disk.sectorsPerTrack()));
|
||||
dialogWidget().chs().setText(QStringLiteral("%1/%2/%3").arg(cyls).arg(heads).arg(sectors));
|
||||
|
||||
dialogWidget().cylinderSize().setText(i18ncp("@label", "1 Sector", "%1 Sectors", disk.cylinderSize()));
|
||||
dialogWidget().primariesMax().setText(maxPrimaries);
|
||||
dialogWidget().logicalSectorSize().setText(Capacity::formatByteSize(disk.logicalSectorSize()));
|
||||
dialogWidget().physicalSectorSize().setText(Capacity::formatByteSize(disk.physicalSectorSize()));
|
||||
|
|
|
@ -37,18 +37,10 @@ public:
|
|||
return *m_PartTableWidget;
|
||||
}
|
||||
|
||||
QLabel& chs() {
|
||||
Q_ASSERT(m_LabelCHS);
|
||||
return *m_LabelCHS;
|
||||
}
|
||||
QLabel& capacity() {
|
||||
Q_ASSERT(m_LabelCapacity);
|
||||
return *m_LabelCapacity;
|
||||
}
|
||||
QLabel& cylinderSize() {
|
||||
Q_ASSERT(m_LabelCylinderSize);
|
||||
return *m_LabelCylinderSize;
|
||||
}
|
||||
QLabel& primariesMax() {
|
||||
Q_ASSERT(m_LabelPrimariesMax);
|
||||
return *m_LabelPrimariesMax;
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
<item>
|
||||
<widget class="QRadioButton" name="m_RadioSectorBased">
|
||||
<property name="text">
|
||||
<string>Sector based al&ignment</string>
|
||||
<string>Sector based align&ment</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -149,35 +149,6 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="8" column="0">
|
||||
<widget class="QLabel" name="m_LabelTextCHS">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>2</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Cylinders/Heads/Sectors:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="1">
|
||||
<widget class="QLabel" name="m_LabelCHS">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>5</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="0">
|
||||
<widget class="QLabel" name="m_LabelTextLogicalSectorSize">
|
||||
<property name="text">
|
||||
<string>Logical sector size:</string>
|
||||
|
@ -187,14 +158,14 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="1">
|
||||
<item row="8" column="1">
|
||||
<widget class="QLabel" name="m_LabelLogicalSectorSize">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="0">
|
||||
<item row="9" column="0">
|
||||
<widget class="QLabel" name="m_LabelTextPhysicalSectorSize">
|
||||
<property name="text">
|
||||
<string>Physical sector size:</string>
|
||||
|
@ -204,38 +175,28 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="1">
|
||||
<item row="9" column="1">
|
||||
<widget class="QLabel" name="m_LabelPhysicalSectorSize">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="0">
|
||||
<widget class="QLabel" name="m_LabelTextCylinderSize">
|
||||
<property name="text">
|
||||
<string>Cylinder size:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="1">
|
||||
<widget class="QLabel" name="m_LabelCylinderSize">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="0" colspan="2">
|
||||
<item row="10" column="0" colspan="2">
|
||||
<widget class="Line" name="line_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="13" column="0">
|
||||
<item row="12" column="0" colspan="2">
|
||||
<widget class="Line" name="line_4">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="0">
|
||||
<widget class="QLabel" name="m_LabelTextPrimariesMax">
|
||||
<property name="text">
|
||||
<string>Primaries/Max:</string>
|
||||
|
@ -245,21 +206,14 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="13" column="1">
|
||||
<item row="11" column="1">
|
||||
<widget class="QLabel" name="m_LabelPrimariesMax">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="14" column="0" colspan="2">
|
||||
<widget class="Line" name="line_4">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="15" column="0">
|
||||
<item row="13" column="0">
|
||||
<widget class="QLabel" name="m_LabelTextSmartStatus">
|
||||
<property name="text">
|
||||
<string>SMART status:</string>
|
||||
|
@ -269,7 +223,7 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="15" column="1">
|
||||
<item row="13" column="1">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="m_LabelSmartStatusIcon">
|
||||
|
@ -306,7 +260,7 @@
|
|||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="16" column="0" colspan="2">
|
||||
<item row="14" column="0" colspan="2">
|
||||
<spacer name="verticalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
|
|
Loading…
Reference in New Issue