mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 17:35:37 -04:00
[partition] Refactor getting the checked flags
This commit is contained in:
parent
950cc9070d
commit
4f451eece5
4 changed files with 26 additions and 16 deletions
|
@ -117,14 +117,7 @@ EditExistingPartitionDialog::~EditExistingPartitionDialog()
|
|||
PartitionTable::Flags
|
||||
EditExistingPartitionDialog::newFlags() const
|
||||
{
|
||||
PartitionTable::Flags flags;
|
||||
|
||||
for ( int i = 0; i < m_ui->m_listFlags->count(); i++ )
|
||||
if ( m_ui->m_listFlags->item( i )->checkState() == Qt::Checked )
|
||||
flags |= static_cast< PartitionTable::Flag >(
|
||||
m_ui->m_listFlags->item( i )->data( Qt::UserRole ).toInt() );
|
||||
|
||||
return flags;
|
||||
return flagsFromList( *(m_ui->m_listFlags) );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue