Revert Replace button to PrettyRadioButton.

main
Teo Mrnjavac 9 years ago
parent 43c67310db
commit 1a882758ca

@ -189,7 +189,7 @@ ChoicePage::setupChoices()
iconSize ) ); iconSize ) );
grp->addButton( m_eraseButton->buttonWidget() ); grp->addButton( m_eraseButton->buttonWidget() );
m_replaceButton = createReplaceButton(); m_replaceButton = new PrettyRadioButton;
m_replaceButton->setIconSize( iconSize ); m_replaceButton->setIconSize( iconSize );
m_replaceButton->setIcon( CalamaresUtils::defaultPixmap( CalamaresUtils::PartitionReplaceOs, m_replaceButton->setIcon( CalamaresUtils::defaultPixmap( CalamaresUtils::PartitionReplaceOs,
@ -355,17 +355,6 @@ ChoicePage::createEraseButton()
} }
ExpandableRadioButton*
ChoicePage::createReplaceButton()
{
ExpandableRadioButton* replaceButton = new ExpandableRadioButton;
replaceButton->setExpandableWidget(
new QLabel( tr( "Select which OS to replace below." ) ) );
return replaceButton;
}
/** /**
* @brief ChoicePage::selectedDevice queries the device picker (which may be a combo or * @brief ChoicePage::selectedDevice queries the device picker (which may be a combo or
* a list view) to get a pointer to the currently selected Device. * a list view) to get a pointer to the currently selected Device.

@ -74,7 +74,6 @@ private:
void setupChoices(); void setupChoices();
QComboBox* createBootloaderComboBox( ExpandableRadioButton* parentButton ); QComboBox* createBootloaderComboBox( ExpandableRadioButton* parentButton );
ExpandableRadioButton* createEraseButton(); ExpandableRadioButton* createEraseButton();
ExpandableRadioButton* createReplaceButton();
Device* selectedDevice(); Device* selectedDevice();
void applyDeviceChoice(); void applyDeviceChoice();
void updateDeviceStatePreview(); void updateDeviceStatePreview();
@ -95,7 +94,7 @@ private:
PrettyRadioButton* m_alongsideButton; PrettyRadioButton* m_alongsideButton;
ExpandableRadioButton* m_eraseButton; ExpandableRadioButton* m_eraseButton;
ExpandableRadioButton* m_replaceButton; PrettyRadioButton* m_replaceButton;
PrettyRadioButton* m_somethingElseButton; PrettyRadioButton* m_somethingElseButton;
DeviceInfoWidget* m_deviceInfoWidget; DeviceInfoWidget* m_deviceInfoWidget;

Loading…
Cancel
Save