Add PartitionPtrRole to PartitionModel.

This commit is contained in:
Teo Mrnjavac 2015-12-17 15:25:39 +01:00
parent 1a4b6b1c9c
commit b663ce5f74
2 changed files with 4 additions and 0 deletions

View File

@ -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 )

View File

@ -72,6 +72,7 @@ public:
IsPartitionNewRole,
FileSystemLabelRole,
FileSystemTypeRole,
PartitionPtrRole, // passed as void*, use sparingly
OsproberNameRole,
OsproberPathRole,
OsproberCanBeResizedRole,