mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 18:05:36 -04:00
Add PartitionPtrRole to PartitionModel.
This commit is contained in:
parent
1a4b6b1c9c
commit
b663ce5f74
2 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue