Use strongly typed enum for Capacity::Unit.

This commit is contained in:
Andrius Štikonas 2019-02-10 00:50:12 +00:00
parent 135853ef50
commit 1d86260ad5
Signed by: andrius
GPG Key ID: E2E5CD054CB9CD3E
1 changed files with 9 additions and 9 deletions

View File

@ -138,18 +138,18 @@
<entry key="defaultFileSystem" type="Int">
<default>static_cast&lt;int&gt;(FileSystem::Type::Ext4)</default>
</entry>
<entry key="preferredUnit" type="Int">
<entry key="preferredUnit" type="Enum">
<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>
<choice name="Byte"/>
<choice name="KiB"/>
<choice name="MiB"/>
<choice name="GiB"/>
<choice name="TiB"/>
<choice name="PiB"/>
<choice name="EiB"/>
</choices>
<default>Capacity::MiB</default>
<default>MiB</default>
</entry>
<entry key="shredSource" type="Enum">
<choices>