Add PartitionPtrRole to PartitionModel.
This commit is contained in:
parent
1a4b6b1c9c
commit
b663ce5f74
@ -176,6 +176,9 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
||||
case FileSystemTypeRole:
|
||||
return partition->fileSystem().type();
|
||||
|
||||
case PartitionPtrRole:
|
||||
return qVariantFromValue( (void*)partition );
|
||||
|
||||
// Osprober roles:
|
||||
case OsproberNameRole:
|
||||
foreach ( const OsproberEntry& osproberEntry, m_osproberEntries )
|
||||
|
@ -72,6 +72,7 @@ public:
|
||||
IsPartitionNewRole,
|
||||
FileSystemLabelRole,
|
||||
FileSystemTypeRole,
|
||||
PartitionPtrRole, // passed as void*, use sparingly
|
||||
OsproberNameRole,
|
||||
OsproberPathRole,
|
||||
OsproberCanBeResizedRole,
|
||||
|
Loading…
Reference in New Issue
Block a user