mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-25 08:28:22 -04:00
[partition] Indent lambdas to tab-stop.
- Lambdas are all over the place in this codebase, formulate a standard and start adjusting code to it in passing.
This commit is contained in:
parent
353e713f81
commit
2ce2b08027
2 changed files with 29 additions and 28 deletions
|
@ -60,6 +60,8 @@ some PEP8 guidelines.
|
||||||
* Function and class definitions have their braces on separate lines.
|
* Function and class definitions have their braces on separate lines.
|
||||||
* A function implementation's return type is on its own line.
|
* A function implementation's return type is on its own line.
|
||||||
* `CamelCase.{cpp,h}` style file names.
|
* `CamelCase.{cpp,h}` style file names.
|
||||||
|
* Lambdas are preferrably indented to a 4-space tab, even when passed as an
|
||||||
|
argument to functions.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
```
|
```
|
||||||
|
|
|
@ -960,10 +960,8 @@ ChoicePage::updateActionChoicePreview( ChoicePage::InstallChoice choice )
|
||||||
QLabel* sizeLabel = new QLabel( m_previewAfterFrame );
|
QLabel* sizeLabel = new QLabel( m_previewAfterFrame );
|
||||||
layout->addWidget( sizeLabel );
|
layout->addWidget( sizeLabel );
|
||||||
sizeLabel->setWordWrap( true );
|
sizeLabel->setWordWrap( true );
|
||||||
connect( m_afterPartitionSplitterWidget, &PartitionSplitterWidget::partitionResized,
|
connect( m_afterPartitionSplitterWidget, &PartitionSplitterWidget::partitionResized, this,
|
||||||
this, [ this, sizeLabel ]( const QString& path,
|
[ this, sizeLabel ]( const QString& path, qint64 size, qint64 sizeNext )
|
||||||
qint64 size,
|
|
||||||
qint64 sizeNext )
|
|
||||||
{
|
{
|
||||||
Q_UNUSED( path )
|
Q_UNUSED( path )
|
||||||
sizeLabel->setText( tr( "%1 will be shrunk to %2MiB and a new "
|
sizeLabel->setText( tr( "%1 will be shrunk to %2MiB and a new "
|
||||||
|
@ -972,7 +970,8 @@ ChoicePage::updateActionChoicePreview( ChoicePage::InstallChoice choice )
|
||||||
.arg( CalamaresUtils::BytesToMiB( size ) )
|
.arg( CalamaresUtils::BytesToMiB( size ) )
|
||||||
.arg( CalamaresUtils::BytesToMiB( sizeNext ) )
|
.arg( CalamaresUtils::BytesToMiB( sizeNext ) )
|
||||||
.arg( *Calamares::Branding::ShortProductName ) );
|
.arg( *Calamares::Branding::ShortProductName ) );
|
||||||
} );
|
}
|
||||||
|
);
|
||||||
|
|
||||||
m_previewAfterFrame->show();
|
m_previewAfterFrame->show();
|
||||||
m_previewAfterLabel->show();
|
m_previewAfterLabel->show();
|
||||||
|
@ -1031,8 +1030,8 @@ ChoicePage::updateActionChoicePreview( ChoicePage::InstallChoice choice )
|
||||||
Calamares::restoreSelectedBootLoader( *m_bootloaderComboBox, m_core->bootLoaderInstallPath() );
|
Calamares::restoreSelectedBootLoader( *m_bootloaderComboBox, m_core->bootLoaderInstallPath() );
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
connect( m_core, &PartitionCoreModule::deviceReverted,
|
connect( m_core, &PartitionCoreModule::deviceReverted, this,
|
||||||
this, [ this ]( Device* dev )
|
[ this ]( Device* dev )
|
||||||
{
|
{
|
||||||
Q_UNUSED( dev )
|
Q_UNUSED( dev )
|
||||||
if ( !m_bootloaderComboBox.isNull() )
|
if ( !m_bootloaderComboBox.isNull() )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue