|
|
@ -92,7 +92,7 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
|
|
|
return prefix + tr( "Free Space" );
|
|
|
|
return prefix + tr( "Free Space" );
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return prefix + ( partition->partitionPath().isEmpty()
|
|
|
|
return prefix + ( PMUtils::isPartitionNew( partition )
|
|
|
|
? tr( "New partition" )
|
|
|
|
? tr( "New partition" )
|
|
|
|
: partition->partitionPath() );
|
|
|
|
: partition->partitionPath() );
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -112,6 +112,8 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
|
|
|
cDebug() << "Unknown column" << col;
|
|
|
|
cDebug() << "Unknown column" << col;
|
|
|
|
return QVariant();
|
|
|
|
return QVariant();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
case IsNewPartitionRole:
|
|
|
|
|
|
|
|
return PMUtils::isPartitionNew( partition );
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
return QVariant();
|
|
|
|
return QVariant();
|
|
|
|
}
|
|
|
|
}
|
|
|
|