add combo box for preferred size unit to advanced config tab

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1134130
This commit is contained in:
Volker Lanz 2010-06-03 13:26:44 +00:00
parent fbb8fed626
commit c37e28d3b8
2 changed files with 75 additions and 1 deletions

View File

@ -105,6 +105,16 @@
<default>FileSystem::Ext3</default>
</entry>
<entry key="preferredUnit" type="Int">
<label context="@label">Preferred unit:</label>
<choices>
<choice name="Byte">Capacity::Byte</choice>
<choice name="KiB">Capacity::KiB</choice>
<choice name="MiB">Capacity::MiB</choice>
<choice name="GiB">Capacity::GiB</choice>
<choice name="TiB">Capacity::TiB</choice>
<choice name="PiB">Capacity::PiB</choice>
<choice name="EiB">Capacity::EiB</choice>
</choices>
<default>Capacity::MiB</default>
</entry>
<entry key="shredSource" type="Enum">

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>367</width>
<height>323</height>
<height>420</height>
</rect>
</property>
<property name="windowTitle">
@ -70,6 +70,70 @@
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_6">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>1</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Units</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string>Preferred unit:</string>
</property>
<property name="buddy">
<cstring>m_ComboBackend</cstring>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="kcfg_preferredUnit">
<item>
<property name="text">
<string>Byte</string>
</property>
</item>
<item>
<property name="text">
<string>KiB</string>
</property>
</item>
<item>
<property name="text">
<string>MiB</string>
</property>
</item>
<item>
<property name="text">
<string>GiB</string>
</property>
</item>
<item>
<property name="text">
<string>TiB</string>
</property>
</item>
<item>
<property name="text">
<string>PiB</string>
</property>
</item>
<item>
<property name="text">
<string>EiB</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<customwidgets>