mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-03 04:15:37 -04:00
Style.
This commit is contained in:
parent
fdc970cfda
commit
3ec7c6f881
1 changed files with 13 additions and 7 deletions
|
@ -177,7 +177,10 @@ PartitionPage::onCreateClicked()
|
|||
Partition* partition = model->partitionForIndex( index );
|
||||
Q_ASSERT( partition );
|
||||
|
||||
QPointer<CreatePartitionDialog> dlg = new CreatePartitionDialog( model->device(), partition->parent(), getCurrentUsedMountpoints(), this );
|
||||
QPointer< CreatePartitionDialog > dlg = new CreatePartitionDialog( model->device(),
|
||||
partition->parent(),
|
||||
getCurrentUsedMountpoints(),
|
||||
this );
|
||||
dlg->initFromFreeSpace( partition );
|
||||
if ( dlg->exec() == QDialog::Accepted )
|
||||
{
|
||||
|
@ -269,7 +272,10 @@ PartitionPage::updatePartitionToCreate( Device* device, Partition* partition )
|
|||
QStringList mountPoints = getCurrentUsedMountpoints();
|
||||
mountPoints.removeOne( PartitionInfo::mountPoint( partition ) );
|
||||
|
||||
QPointer<CreatePartitionDialog> dlg = new CreatePartitionDialog( device, partition->parent(), mountPoints, this );
|
||||
QPointer< CreatePartitionDialog > dlg = new CreatePartitionDialog( device,
|
||||
partition->parent(),
|
||||
mountPoints,
|
||||
this );
|
||||
dlg->initFromPartitionToCreate( partition );
|
||||
if ( dlg->exec() == QDialog::Accepted )
|
||||
{
|
||||
|
@ -387,20 +393,20 @@ PartitionPage::updateBootLoaderIndex()
|
|||
QStringList
|
||||
PartitionPage::getCurrentUsedMountpoints()
|
||||
{
|
||||
QModelIndex index = m_core->deviceModel()->index( m_ui->deviceComboBox->currentIndex(), 0 );
|
||||
QModelIndex index = m_core->deviceModel()->index(
|
||||
m_ui->deviceComboBox->currentIndex(), 0 );
|
||||
if ( !index.isValid() )
|
||||
return QStringList();
|
||||
|
||||
Device* device = m_core->deviceModel()->deviceForIndex( index );
|
||||
QStringList mountPoints;
|
||||
|
||||
for (Partition* partition : device->partitionTable()->children()) {
|
||||
for ( Partition* partition : device->partitionTable()->children() )
|
||||
{
|
||||
const QString& mountPoint = PartitionInfo::mountPoint( partition );
|
||||
|
||||
if (!mountPoint.isEmpty()) {
|
||||
if ( !mountPoint.isEmpty() )
|
||||
mountPoints << mountPoint;
|
||||
}
|
||||
}
|
||||
|
||||
return mountPoints;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue