mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
Add OsproberHomePartitionPathRole to PartitionModel.
This commit is contained in:
parent
be3070ca48
commit
45ed210192
2 changed files with 7 additions and 1 deletions
|
@ -223,6 +223,11 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
||||||
if ( osproberEntry.path == partition->partitionPath() )
|
if ( osproberEntry.path == partition->partitionPath() )
|
||||||
return osproberEntry.line;
|
return osproberEntry.line;
|
||||||
return QVariant();
|
return QVariant();
|
||||||
|
case OsproberHomePartitionPathRole:
|
||||||
|
foreach ( const OsproberEntry& osproberEntry, m_osproberEntries )
|
||||||
|
if ( osproberEntry.path == partition->partitionPath() )
|
||||||
|
return osproberEntry.homePath;
|
||||||
|
return QVariant();
|
||||||
// end Osprober roles.
|
// end Osprober roles.
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -77,7 +77,8 @@ public:
|
||||||
OsproberNameRole,
|
OsproberNameRole,
|
||||||
OsproberPathRole,
|
OsproberPathRole,
|
||||||
OsproberCanBeResizedRole,
|
OsproberCanBeResizedRole,
|
||||||
OsproberRawLineRole
|
OsproberRawLineRole,
|
||||||
|
OsproberHomePartitionPathRole
|
||||||
};
|
};
|
||||||
|
|
||||||
enum Column
|
enum Column
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue