mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
Coding style fixes
This commit is contained in:
parent
ca247c26ca
commit
724780fb23
2 changed files with 10 additions and 8 deletions
|
@ -81,10 +81,10 @@ CreatePartitionDialog::createJob()
|
|||
if ( m_role.roles() == PartitionRole::None )
|
||||
{
|
||||
m_role = PartitionRole(
|
||||
m_ui->extendedRadioButton->isChecked()
|
||||
? PartitionRole::Extended
|
||||
: PartitionRole::Primary
|
||||
);
|
||||
m_ui->extendedRadioButton->isChecked()
|
||||
? PartitionRole::Extended
|
||||
: PartitionRole::Primary
|
||||
);
|
||||
}
|
||||
|
||||
qint64 first = m_freePartition->firstSector();
|
||||
|
@ -92,8 +92,8 @@ CreatePartitionDialog::createJob()
|
|||
qint64 last = first + qint64( m_ui->sizeSpinBox->value() ) * 1024 * 1024 / m_device->logicalSectorSize();
|
||||
|
||||
FileSystem::Type type = m_role.has( PartitionRole::Extended )
|
||||
? FileSystem::Extended
|
||||
: FileSystem::typeForName( m_ui->fsComboBox->currentText() );
|
||||
? FileSystem::Extended
|
||||
: FileSystem::typeForName( m_ui->fsComboBox->currentText() );
|
||||
FileSystem* fs = FileSystemFactory::create( type, first, last );
|
||||
|
||||
PartitionNode* parent = m_freePartition->parent();
|
||||
|
|
|
@ -64,7 +64,8 @@ PartitionPage::~PartitionPage()
|
|||
{
|
||||
}
|
||||
|
||||
void PartitionPage::updateButtons()
|
||||
void
|
||||
PartitionPage::updateButtons()
|
||||
{
|
||||
bool create = false, edit = false, del = false;
|
||||
|
||||
|
@ -84,7 +85,8 @@ void PartitionPage::updateButtons()
|
|||
m_ui->deleteButton->setEnabled( del );
|
||||
}
|
||||
|
||||
void PartitionPage::onCreateClicked()
|
||||
void
|
||||
PartitionPage::onCreateClicked()
|
||||
{
|
||||
QModelIndex index = m_ui->partitionListView->currentIndex();
|
||||
Q_ASSERT( index.isValid() );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue