Improve CreatePartitionJob::prettyName

main
Aurélien Gâteau 11 years ago
parent d374d8bad8
commit a5fcb9bcb9

@ -17,7 +17,6 @@
*/ */
#include <CreatePartitionJob.h> #include <CreatePartitionJob.h>
#include <PartitionInfo.h>
#include <utils/Logger.h> #include <utils/Logger.h>
@ -45,7 +44,10 @@ CreatePartitionJob::CreatePartitionJob( Device* device, Partition* partition )
QString QString
CreatePartitionJob::prettyName() const CreatePartitionJob::prettyName() const
{ {
return tr( "Create partition" ); // FIXME return tr( "Create partition (file system: %1, size: %2 MB) on %3." )
.arg( m_partition->fileSystem().name() )
.arg( m_partition->capacity() / 1024 / 1024 )
.arg( m_device->name() );
} }
Calamares::JobResult Calamares::JobResult

@ -5,7 +5,6 @@ set( jobtests_SRCS
${PartitionModule_SOURCE_DIR}/CreatePartitionJob.cpp ${PartitionModule_SOURCE_DIR}/CreatePartitionJob.cpp
${PartitionModule_SOURCE_DIR}/CreatePartitionTableJob.cpp ${PartitionModule_SOURCE_DIR}/CreatePartitionTableJob.cpp
${PartitionModule_SOURCE_DIR}/DeletePartitionJob.cpp ${PartitionModule_SOURCE_DIR}/DeletePartitionJob.cpp
${PartitionModule_SOURCE_DIR}/PartitionInfo.cpp
${PartitionModule_SOURCE_DIR}/PartitionJob.cpp ${PartitionModule_SOURCE_DIR}/PartitionJob.cpp
${PartitionModule_SOURCE_DIR}/PMUtils.cpp ${PartitionModule_SOURCE_DIR}/PMUtils.cpp
JobTests.cpp JobTests.cpp

Loading…
Cancel
Save