mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
Add PartitionPathRole to PartitionModel.
This commit is contained in:
parent
2258c806ae
commit
5655b4f1da
2 changed files with 4 additions and 0 deletions
|
@ -176,6 +176,9 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
||||||
case FileSystemTypeRole:
|
case FileSystemTypeRole:
|
||||||
return partition->fileSystem().type();
|
return partition->fileSystem().type();
|
||||||
|
|
||||||
|
case PartitionPathRole:
|
||||||
|
return partition->devicePath();
|
||||||
|
|
||||||
case PartitionPtrRole:
|
case PartitionPtrRole:
|
||||||
return qVariantFromValue( (void*)partition );
|
return qVariantFromValue( (void*)partition );
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,7 @@ public:
|
||||||
IsPartitionNewRole,
|
IsPartitionNewRole,
|
||||||
FileSystemLabelRole,
|
FileSystemLabelRole,
|
||||||
FileSystemTypeRole,
|
FileSystemTypeRole,
|
||||||
|
PartitionPathRole,
|
||||||
PartitionPtrRole, // passed as void*, use sparingly
|
PartitionPtrRole, // passed as void*, use sparingly
|
||||||
OsproberNameRole,
|
OsproberNameRole,
|
||||||
OsproberPathRole,
|
OsproberPathRole,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue