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(); return device->deviceNode();
else else
return tr( "%1 - %2 (%3)" ) return tr( "%1 - %2 (%3)" )
.arg( device->name() ) .arg( device->name() )
.arg( KFormat().formatByteSize( device->capacity() ) ) .arg( KFormat().formatByteSize( device->capacity() ) )
.arg( device->deviceNode() ); .arg( device->deviceNode() );
default: default:
return QVariant(); return QVariant();
} }

View file

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

View file

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