Clang: reduce warnings; make enum-switch explicit
This commit is contained in:
parent
2905a9969d
commit
c0b3f3fe9d
@ -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…
Reference in New Issue
Block a user