[partition] Refactor PartitionEntry

- add a constructor that parses size and min
 - minor reduction in code duplication
This commit is contained in:
Adriaan de Groot 2019-02-11 17:37:14 -05:00
parent 5863300f67
commit a6edb3ed34
2 changed files with 14 additions and 12 deletions

View file

@ -53,6 +53,11 @@ public:
SizeUnit partSizeUnit = Percent;
double partMinSize = 0.0L;
SizeUnit partMinSizeUnit = Percent;
/// @brief All-zeroes PartitionEntry
PartitionEntry() {};
/// @brief Parse @p size and @p min to their respective member variables
PartitionEntry( const QString& size, const QString& min );
};
PartitionLayout();