Skip to content
Snippets Groups Projects
Commit 45ed2101 authored by Teo Mrnjavac's avatar Teo Mrnjavac
Browse files

Add OsproberHomePartitionPathRole to PartitionModel.

parent be3070ca
No related branches found
No related tags found
No related merge requests found
...@@ -223,6 +223,11 @@ PartitionModel::data( const QModelIndex& index, int role ) const ...@@ -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: ...@@ -77,7 +77,8 @@ public:
OsproberNameRole, OsproberNameRole,
OsproberPathRole, OsproberPathRole,
OsproberCanBeResizedRole, OsproberCanBeResizedRole,
OsproberRawLineRole OsproberRawLineRole,
OsproberHomePartitionPathRole
}; };
enum Column enum Column
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment