Coding style fixes

This commit is contained in:
Aurélien Gâteau 2014-07-22 10:47:39 +02:00
parent 906019facc
commit a335c1cc04
3 changed files with 9 additions and 9 deletions

View File

@ -63,9 +63,9 @@ DeviceModel::data( const QModelIndex& index, int role ) const
return device->deviceNode();
else
return tr( "%1 - %2 (%3)" )
.arg( device->name() )
.arg( KFormat().formatByteSize( device->capacity() ) )
.arg( device->deviceNode() );
.arg( device->name() )
.arg( KFormat().formatByteSize( device->capacity() ) )
.arg( device->deviceNode() );
default:
return QVariant();
}

View File

@ -45,10 +45,10 @@ QString
FormatPartitionJob::prettyName() const
{
return tr( "Format partition %1 (file system: %2, size: %3 MB) on %4." )
.arg( m_partition->partitionPath() )
.arg( m_partition->fileSystem().name() )
.arg( m_partition->capacity() / 1024 / 1024 )
.arg( m_device->name() );
.arg( m_partition->partitionPath() )
.arg( m_partition->fileSystem().name() )
.arg( m_partition->capacity() / 1024 / 1024 )
.arg( m_device->name() );
}
Calamares::JobResult

View File

@ -368,8 +368,8 @@ static QStandardItem*
createBootLoaderItem( const QString& description, const QString& path )
{
QString text = PartitionCoreModule::tr( "%1 (%2)" )
.arg( description )
.arg( path );
.arg( description )
.arg( path );
QStandardItem* item = new QStandardItem( text );
item->setData( path, PartitionCoreModule::BootLoaderPathRole );
return item;