|
|
@ -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 )
|
|
|
|