mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
Clang: reduce warnings; make enum-switch explicit
This commit is contained in:
parent
2905a9969d
commit
c0b3f3fe9d
1 changed files with 4 additions and 3 deletions
|
@ -169,7 +169,8 @@ PartitionViewStep::createSummaryWidget() const
|
||||||
.arg( Calamares::Branding::instance()->
|
.arg( Calamares::Branding::instance()->
|
||||||
string( Calamares::Branding::ShortVersionedName ) );
|
string( Calamares::Branding::ShortVersionedName ) );
|
||||||
break;
|
break;
|
||||||
default:
|
case ChoicePage::NoChoice:
|
||||||
|
case ChoicePage::Manual:
|
||||||
modeText = tr( "<strong>Manual</strong> partitioning." );
|
modeText = tr( "<strong>Manual</strong> partitioning." );
|
||||||
}
|
}
|
||||||
modeLabel->setText( modeText );
|
modeLabel->setText( modeText );
|
||||||
|
@ -203,7 +204,8 @@ PartitionViewStep::createSummaryWidget() const
|
||||||
.arg( info.deviceNode )
|
.arg( info.deviceNode )
|
||||||
.arg( info.deviceName );
|
.arg( info.deviceName );
|
||||||
break;
|
break;
|
||||||
default:
|
case ChoicePage::NoChoice:
|
||||||
|
case ChoicePage::Manual:
|
||||||
modeText = tr( "<strong>Manual</strong> partitioning on disk <strong>%1</strong> (%2)." )
|
modeText = tr( "<strong>Manual</strong> partitioning on disk <strong>%1</strong> (%2)." )
|
||||||
.arg( info.deviceNode )
|
.arg( info.deviceNode )
|
||||||
.arg( info.deviceName );
|
.arg( info.deviceName );
|
||||||
|
@ -271,7 +273,6 @@ PartitionViewStep::createSummaryWidget() const
|
||||||
QLabel* jobsLabel = new QLabel( widget );
|
QLabel* jobsLabel = new QLabel( widget );
|
||||||
mainLayout->addWidget( jobsLabel );
|
mainLayout->addWidget( jobsLabel );
|
||||||
jobsLabel->setText( jobsLines.join( "<br/>" ) );
|
jobsLabel->setText( jobsLines.join( "<br/>" ) );
|
||||||
int m = CalamaresUtils::defaultFontHeight() / 2;
|
|
||||||
jobsLabel->setMargin( CalamaresUtils::defaultFontHeight() / 2 );
|
jobsLabel->setMargin( CalamaresUtils::defaultFontHeight() / 2 );
|
||||||
QPalette pal;
|
QPalette pal;
|
||||||
pal.setColor( QPalette::Background, pal.background().color().lighter( 108 ) );
|
pal.setColor( QPalette::Background, pal.background().color().lighter( 108 ) );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue