iOS: use new settings page convenience

Change-Id: I307fea9a1243df981547f11c4f5d7cd231c185c0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2020-01-07 16:51:01 +01:00
parent 0424420e3c
commit 60a1acc0cf
4 changed files with 15 additions and 33 deletions

View File

@@ -40,24 +40,7 @@ IosSettingsPage::IosSettingsPage()
setId(Constants::IOS_SETTINGS_ID);
setDisplayName(tr("iOS"));
setCategory(ProjectExplorer::Constants::DEVICE_SETTINGS_CATEGORY);
}
QWidget *IosSettingsPage::widget()
{
if (!m_widget)
m_widget = new IosSettingsWidget;
return m_widget;
}
void IosSettingsPage::apply()
{
m_widget->saveSettings();
IosConfigurations::updateAutomaticKitList();
}
void IosSettingsPage::finish()
{
delete m_widget;
setWidgetCreator([] { return new IosSettingsWidget; });
}
} // namespace Internal