Add PartitionPathRole to PartitionModel.
This commit is contained in:
parent
2258c806ae
commit
5655b4f1da
@ -176,6 +176,9 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
||||
case FileSystemTypeRole:
|
||||
return partition->fileSystem().type();
|
||||
|
||||
case PartitionPathRole:
|
||||
return partition->devicePath();
|
||||
|
||||
case PartitionPtrRole:
|
||||
return qVariantFromValue( (void*)partition );
|
||||
|
||||
|
@ -72,6 +72,7 @@ public:
|
||||
IsPartitionNewRole,
|
||||
FileSystemLabelRole,
|
||||
FileSystemTypeRole,
|
||||
PartitionPathRole,
|
||||
PartitionPtrRole, // passed as void*, use sparingly
|
||||
OsproberNameRole,
|
||||
OsproberPathRole,
|
||||
|
Loading…
Reference in New Issue
Block a user