Display current filesystem label as a column in the main partition view.
This commit is contained in:
parent
405fc3dfc2
commit
1cfdc8044c
@ -167,6 +167,10 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
||||
{
|
||||
return CalamaresUtils::Partition::prettyNameForFileSystemType( partition->fileSystem().type() );
|
||||
}
|
||||
if ( col == FileSystemLabelColumn )
|
||||
{
|
||||
return partition->fileSystem().label();
|
||||
}
|
||||
if ( col == MountPointColumn )
|
||||
{
|
||||
return PartitionInfo::mountPoint( partition );
|
||||
@ -296,6 +300,8 @@ PartitionModel::headerData( int section, Qt::Orientation, int role ) const
|
||||
return tr( "Name" );
|
||||
case FileSystemColumn:
|
||||
return tr( "File System" );
|
||||
case FileSystemLabelColumn:
|
||||
return tr( "File System Label" );
|
||||
case MountPointColumn:
|
||||
return tr( "Mount Point" );
|
||||
case SizeColumn:
|
||||
|
@ -79,6 +79,7 @@ public:
|
||||
{
|
||||
NameColumn,
|
||||
FileSystemColumn,
|
||||
FileSystemLabelColumn,
|
||||
MountPointColumn,
|
||||
SizeColumn,
|
||||
ColumnCount // Must remain last
|
||||
|
Loading…
Reference in New Issue
Block a user