Add prettyDescription to most Partitioning jobs.

This commit is contained in:
Teo Mrnjavac 2015-04-09 15:16:09 +02:00
parent bf0296e155
commit 8568c2c816
10 changed files with 66 additions and 7 deletions

View file

@ -1,6 +1,7 @@
/* === This file is part of Calamares - <http://github.com/calamares> ===
*
* Copyright 2014, Aurélien Gâteau <agateau@kde.org>
* Copyright 2015, Teo Mrnjavac <teo@kde.org>
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -48,7 +49,17 @@ FormatPartitionJob::prettyName() const
.arg( m_partition->partitionPath() )
.arg( m_partition->fileSystem().name() )
.arg( m_partition->capacity() / 1024 / 1024 )
.arg( m_device->name() );
.arg( m_device->name() );
}
QString
FormatPartitionJob::prettyDescription() const
{
return tr( "Format <b>%3MB</b> partition <b>%1</b> with file system <b>%2</b>." )
.arg( m_partition->partitionPath() )
.arg( m_partition->fileSystem().name() )
.arg( m_partition->capacity() / 1024 / 1024 );
}
Calamares::JobResult