mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
Add filesystem label role.
This commit is contained in:
parent
0224811bf6
commit
c765de654c
2 changed files with 7 additions and 0 deletions
|
@ -164,6 +164,12 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
||||||
case IsFreeSpaceRole:
|
case IsFreeSpaceRole:
|
||||||
return KPMHelpers::isPartitionFreeSpace( partition );
|
return KPMHelpers::isPartitionFreeSpace( partition );
|
||||||
|
|
||||||
|
case FileSystemLabelRole:
|
||||||
|
if ( partition->fileSystem().supportGetLabel() != FileSystem::cmdSupportNone &&
|
||||||
|
!partition->fileSystem().label().isEmpty() )
|
||||||
|
return partition->fileSystem().label();
|
||||||
|
return QVariant();
|
||||||
|
|
||||||
// Osprober roles:
|
// Osprober roles:
|
||||||
case OsproberNameRole:
|
case OsproberNameRole:
|
||||||
foreach ( const OsproberEntry& osproberEntry, m_osproberEntries )
|
foreach ( const OsproberEntry& osproberEntry, m_osproberEntries )
|
||||||
|
|
|
@ -69,6 +69,7 @@ public:
|
||||||
// SizeColumn, which is a human-readable string.
|
// SizeColumn, which is a human-readable string.
|
||||||
SizeRole = Qt::UserRole + 1,
|
SizeRole = Qt::UserRole + 1,
|
||||||
IsFreeSpaceRole,
|
IsFreeSpaceRole,
|
||||||
|
FileSystemLabelRole,
|
||||||
OsproberNameRole,
|
OsproberNameRole,
|
||||||
OsproberPathRole,
|
OsproberPathRole,
|
||||||
OsproberCanBeResizedRole,
|
OsproberCanBeResizedRole,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue