mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-02 03:45:38 -04:00
Add IsPartitionNewRole to PartitionModel.
This commit is contained in:
parent
c765de654c
commit
a75c69805f
2 changed files with 4 additions and 0 deletions
|
@ -164,6 +164,9 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
||||||
case IsFreeSpaceRole:
|
case IsFreeSpaceRole:
|
||||||
return KPMHelpers::isPartitionFreeSpace( partition );
|
return KPMHelpers::isPartitionFreeSpace( partition );
|
||||||
|
|
||||||
|
case IsPartitionNewRole:
|
||||||
|
return KPMHelpers::isPartitionNew( partition );
|
||||||
|
|
||||||
case FileSystemLabelRole:
|
case FileSystemLabelRole:
|
||||||
if ( partition->fileSystem().supportGetLabel() != FileSystem::cmdSupportNone &&
|
if ( partition->fileSystem().supportGetLabel() != FileSystem::cmdSupportNone &&
|
||||||
!partition->fileSystem().label().isEmpty() )
|
!partition->fileSystem().label().isEmpty() )
|
||||||
|
|
|
@ -69,6 +69,7 @@ public:
|
||||||
// SizeColumn, which is a human-readable string.
|
// SizeColumn, which is a human-readable string.
|
||||||
SizeRole = Qt::UserRole + 1,
|
SizeRole = Qt::UserRole + 1,
|
||||||
IsFreeSpaceRole,
|
IsFreeSpaceRole,
|
||||||
|
IsPartitionNewRole,
|
||||||
FileSystemLabelRole,
|
FileSystemLabelRole,
|
||||||
OsproberNameRole,
|
OsproberNameRole,
|
||||||
OsproberPathRole,
|
OsproberPathRole,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue