mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 17:35:37 -04:00
PMUtils is now KPMHelpers. Also fixup after PartUtils refactor.
This commit is contained in:
parent
95e87391a4
commit
5f54a56513
23 changed files with 61 additions and 170 deletions
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include "core/ColorUtils.h"
|
||||
#include "core/PartitionInfo.h"
|
||||
#include "core/PMUtils.h"
|
||||
#include "core/KPMHelpers.h"
|
||||
#include "utils/Logger.h"
|
||||
|
||||
// CalaPM
|
||||
|
@ -132,11 +132,11 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
|||
int col = index.column();
|
||||
if ( col == NameColumn )
|
||||
{
|
||||
if ( PMUtils::isPartitionFreeSpace( partition ) )
|
||||
if ( KPMHelpers::isPartitionFreeSpace( partition ) )
|
||||
return tr( "Free Space" );
|
||||
else
|
||||
{
|
||||
return PMUtils::isPartitionNew( partition )
|
||||
return KPMHelpers::isPartitionNew( partition )
|
||||
? tr( "New partition" )
|
||||
: partition->partitionPath();
|
||||
}
|
||||
|
@ -161,7 +161,7 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
|||
case SizeRole:
|
||||
return ( partition->lastSector() - partition->firstSector() + 1 ) * m_device->logicalSectorSize();
|
||||
case IsFreeSpaceRole:
|
||||
return PMUtils::isPartitionFreeSpace( partition );
|
||||
return KPMHelpers::isPartitionFreeSpace( partition );
|
||||
default:
|
||||
return QVariant();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue