Add OsproberHomePartitionPathRole to PartitionModel.
This commit is contained in:
parent
be3070ca48
commit
45ed210192
@ -223,6 +223,11 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
||||
if ( osproberEntry.path == partition->partitionPath() )
|
||||
return osproberEntry.line;
|
||||
return QVariant();
|
||||
case OsproberHomePartitionPathRole:
|
||||
foreach ( const OsproberEntry& osproberEntry, m_osproberEntries )
|
||||
if ( osproberEntry.path == partition->partitionPath() )
|
||||
return osproberEntry.homePath;
|
||||
return QVariant();
|
||||
// end Osprober roles.
|
||||
|
||||
default:
|
||||
|
@ -77,7 +77,8 @@ public:
|
||||
OsproberNameRole,
|
||||
OsproberPathRole,
|
||||
OsproberCanBeResizedRole,
|
||||
OsproberRawLineRole
|
||||
OsproberRawLineRole,
|
||||
OsproberHomePartitionPathRole
|
||||
};
|
||||
|
||||
enum Column
|
||||
|
Loading…
Reference in New Issue
Block a user