Remove ReplaceWidget.

main
Teo Mrnjavac 9 years ago
parent d0ee43172c
commit d164ec4d91

@ -360,30 +360,8 @@ ExpandableRadioButton*
ChoicePage::createReplaceButton() ChoicePage::createReplaceButton()
{ {
ExpandableRadioButton* replaceButton = new ExpandableRadioButton; ExpandableRadioButton* replaceButton = new ExpandableRadioButton;
QWidget* replaceContainer = new QWidget; replaceButton->setExpandableWidget(
QVBoxLayout* mainReplaceLayout = new QVBoxLayout; new QLabel( tr( "Select which OS to replace below." ) ) );
replaceContainer->setLayout( mainReplaceLayout );
CalamaresUtils::unmarginLayout( mainReplaceLayout );
ReplaceWidget* replaceWidget = new ReplaceWidget( m_core, m_drivesCombo );
mainReplaceLayout->addWidget( replaceWidget );
if ( !m_isEfi )
{
QHBoxLayout* bootloaderLayout = new QHBoxLayout;
bootloaderLayout->setContentsMargins( 0, 0, 0, 0 );
QLabel* eraseBootloaderLabel = new QLabel( replaceButton );
bootloaderLayout->addWidget( eraseBootloaderLabel );
eraseBootloaderLabel->setText( tr( "Boot loader location:" ) );
QComboBox* eraseBootloaderCombo = createBootloaderComboBox( replaceButton );
bootloaderLayout->addWidget( eraseBootloaderCombo );
eraseBootloaderLabel->setBuddy( eraseBootloaderCombo );
bootloaderLayout->addStretch();
mainReplaceLayout->addLayout( bootloaderLayout );
}
replaceButton->setExpandableWidget( replaceContainer );
return replaceButton; return replaceButton;
} }
@ -452,6 +430,7 @@ ChoicePage::applyActionChoice( Device* currentDevice, ChoicePage::Choice choice
PartitionActions::doAutopartition( m_core, selectedDevice() ); PartitionActions::doAutopartition( m_core, selectedDevice() );
break; break;
case Replace: case Replace:
case NoChoice: case NoChoice:
case Manual: case Manual:
break; break;

Loading…
Cancel
Save