mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 02:45:37 -04:00
Display current filesystem label as a column in the main partition view.
This commit is contained in:
parent
405fc3dfc2
commit
1cfdc8044c
2 changed files with 7 additions and 0 deletions
|
@ -167,6 +167,10 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
||||||
{
|
{
|
||||||
return CalamaresUtils::Partition::prettyNameForFileSystemType( partition->fileSystem().type() );
|
return CalamaresUtils::Partition::prettyNameForFileSystemType( partition->fileSystem().type() );
|
||||||
}
|
}
|
||||||
|
if ( col == FileSystemLabelColumn )
|
||||||
|
{
|
||||||
|
return partition->fileSystem().label();
|
||||||
|
}
|
||||||
if ( col == MountPointColumn )
|
if ( col == MountPointColumn )
|
||||||
{
|
{
|
||||||
return PartitionInfo::mountPoint( partition );
|
return PartitionInfo::mountPoint( partition );
|
||||||
|
@ -296,6 +300,8 @@ PartitionModel::headerData( int section, Qt::Orientation, int role ) const
|
||||||
return tr( "Name" );
|
return tr( "Name" );
|
||||||
case FileSystemColumn:
|
case FileSystemColumn:
|
||||||
return tr( "File System" );
|
return tr( "File System" );
|
||||||
|
case FileSystemLabelColumn:
|
||||||
|
return tr( "File System Label" );
|
||||||
case MountPointColumn:
|
case MountPointColumn:
|
||||||
return tr( "Mount Point" );
|
return tr( "Mount Point" );
|
||||||
case SizeColumn:
|
case SizeColumn:
|
||||||
|
|
|
@ -79,6 +79,7 @@ public:
|
||||||
{
|
{
|
||||||
NameColumn,
|
NameColumn,
|
||||||
FileSystemColumn,
|
FileSystemColumn,
|
||||||
|
FileSystemLabelColumn,
|
||||||
MountPointColumn,
|
MountPointColumn,
|
||||||
SizeColumn,
|
SizeColumn,
|
||||||
ColumnCount // Must remain last
|
ColumnCount // Must remain last
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue