mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-01 11:25:36 -04:00
[partition] Make convenienceName() available for debugging
- Function for human-readable names is useful in more parts of the partition module.
This commit is contained in:
parent
1ffc0bf77d
commit
5d6d2b8078
2 changed files with 10 additions and 1 deletions
|
@ -46,6 +46,15 @@ enum SizeUnit
|
|||
GiB
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Provides a nice human-readable name for @p candidate
|
||||
*
|
||||
* The most-specific human-readable name for the partition @p candidate
|
||||
* is returned (e.g. device name, or partition path). In the worst
|
||||
* case, a string representation of (void *)candidate is returned.
|
||||
*/
|
||||
QString convenienceName( const Partition* const candidate );
|
||||
|
||||
/**
|
||||
* @brief canBeReplaced checks whether the given Partition satisfies the criteria
|
||||
* for replacing it with the new OS.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue