[partition] Minor stylistic bits

This commit is contained in:
Adriaan de Groot 2021-07-12 14:56:04 +02:00
parent 373b94b968
commit 7094c7bf39

View File

@ -112,7 +112,6 @@ PartitionViewStep::prettyName() const
QString QString
PartitionViewStep::prettyStatus() const PartitionViewStep::prettyStatus() const
{ {
//return tr( "Create new GPT partition table on /dev/sdb" ); //includes %1" ); .arg ( m_pkgc );
QString jobsLabel, modeText, diskInfoLabel; QString jobsLabel, modeText, diskInfoLabel;
Config::InstallChoice choice = m_config->installChoice(); Config::InstallChoice choice = m_config->installChoice();
@ -123,8 +122,8 @@ PartitionViewStep::prettyStatus() const
cDebug() << "Summary for Partition" << list.length() << choice; cDebug() << "Summary for Partition" << list.length() << choice;
if ( list.length() > 1 ) // There are changes on more than one disk if ( list.length() > 1 ) // There are changes on more than one disk
{ {
// NOTE: all of this should only happen when Manual partitioning is active. // NOTE: all of this should only happen when Manual partitioning is active.
// Any other choice should result in a list.length() == 1. // Any other choice should result in a list.length() == 1.
switch ( choice ) switch ( choice )
{ {
case Config::Alongside: case Config::Alongside:
@ -199,14 +198,6 @@ PartitionViewStep::prettyStatus() const
return diskInfoLabel + "<br/>" + jobsLabel; return diskInfoLabel + "<br/>" + jobsLabel;
} }
QWidget*
PartitionViewStep::widget()
{
return m_widget;
}
QWidget* QWidget*
PartitionViewStep::createSummaryWidget() const PartitionViewStep::createSummaryWidget() const
{ {
@ -355,6 +346,11 @@ PartitionViewStep::createSummaryWidget() const
return widget; return widget;
} }
QWidget*
PartitionViewStep::widget()
{
return m_widget;
}
void void
PartitionViewStep::next() PartitionViewStep::next()