Coding style fixes

main
Aurélien Gâteau 11 years ago
parent ca247c26ca
commit 724780fb23

@ -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…
Cancel
Save