Add IsPartitionNewRole to PartitionModel.

This commit is contained in:
Teo Mrnjavac 2015-12-15 16:07:53 +01:00
parent c765de654c
commit a75c69805f
2 changed files with 4 additions and 0 deletions

View File

@ -164,6 +164,9 @@ PartitionModel::data( const QModelIndex& index, int role ) const
case IsFreeSpaceRole:
return KPMHelpers::isPartitionFreeSpace( partition );
case IsPartitionNewRole:
return KPMHelpers::isPartitionNew( partition );
case FileSystemLabelRole:
if ( partition->fileSystem().supportGetLabel() != FileSystem::cmdSupportNone &&
!partition->fileSystem().label().isEmpty() )

View File

@ -69,6 +69,7 @@ public:
// SizeColumn, which is a human-readable string.
SizeRole = Qt::UserRole + 1,
IsFreeSpaceRole,
IsPartitionNewRole,
FileSystemLabelRole,
OsproberNameRole,
OsproberPathRole,