forked from qt-creator/qt-creator
iOS: use new settings page convenience
Change-Id: I307fea9a1243df981547f11c4f5d7cd231c185c0 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user