mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 17:35:37 -04:00
Add separate FileSystemTypeRole to PM, and output FS PrettyNames.
This commit is contained in:
parent
2986625cfd
commit
df13b3ba08
2 changed files with 5 additions and 1 deletions
|
@ -143,7 +143,7 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( col == FileSystemColumn )
|
if ( col == FileSystemColumn )
|
||||||
return partition->fileSystem().name();
|
return KPMHelpers::prettyNameForFileSystemType( partition->fileSystem().type() );
|
||||||
if ( col == MountPointColumn )
|
if ( col == MountPointColumn )
|
||||||
return PartitionInfo::mountPoint( partition );
|
return PartitionInfo::mountPoint( partition );
|
||||||
if ( col == SizeColumn )
|
if ( col == SizeColumn )
|
||||||
|
@ -173,6 +173,9 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
||||||
return partition->fileSystem().label();
|
return partition->fileSystem().label();
|
||||||
return QVariant();
|
return QVariant();
|
||||||
|
|
||||||
|
case FileSystemTypeRole:
|
||||||
|
return partition->fileSystem().type();
|
||||||
|
|
||||||
// Osprober roles:
|
// Osprober roles:
|
||||||
case OsproberNameRole:
|
case OsproberNameRole:
|
||||||
foreach ( const OsproberEntry& osproberEntry, m_osproberEntries )
|
foreach ( const OsproberEntry& osproberEntry, m_osproberEntries )
|
||||||
|
|
|
@ -71,6 +71,7 @@ public:
|
||||||
IsFreeSpaceRole,
|
IsFreeSpaceRole,
|
||||||
IsPartitionNewRole,
|
IsPartitionNewRole,
|
||||||
FileSystemLabelRole,
|
FileSystemLabelRole,
|
||||||
|
FileSystemTypeRole,
|
||||||
OsproberNameRole,
|
OsproberNameRole,
|
||||||
OsproberPathRole,
|
OsproberPathRole,
|
||||||
OsproberCanBeResizedRole,
|
OsproberCanBeResizedRole,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue