|
|
@ -184,6 +184,14 @@ PartitionLabelsView::buildTexts( const QModelIndex& index ) const
|
|
|
|
QString firstLine, secondLine;
|
|
|
|
QString firstLine, secondLine;
|
|
|
|
|
|
|
|
|
|
|
|
if ( index.data( PartitionModel::IsPartitionNewRole ).toBool() )
|
|
|
|
if ( index.data( PartitionModel::IsPartitionNewRole ).toBool() )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
QString label = index.data( PartitionModel::FileSystemLabelRole ).toString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( !label.isEmpty() )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
firstLine = label;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
QString mountPoint = index.sibling( index.row(),
|
|
|
|
QString mountPoint = index.sibling( index.row(),
|
|
|
|
PartitionModel::MountPointColumn )
|
|
|
|
PartitionModel::MountPointColumn )
|
|
|
@ -206,6 +214,7 @@ PartitionLabelsView::buildTexts( const QModelIndex& index ) const
|
|
|
|
else
|
|
|
|
else
|
|
|
|
firstLine = tr( "New partition" );
|
|
|
|
firstLine = tr( "New partition" );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else if ( index.data( PartitionModel::OsproberNameRole ).toString().isEmpty() )
|
|
|
|
else if ( index.data( PartitionModel::OsproberNameRole ).toString().isEmpty() )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
firstLine = index.data().toString();
|
|
|
|
firstLine = index.data().toString();
|
|
|
|