forked from qt-creator/qt-creator
Make project use toMap/fromMap to save state
* That is what everybody else is using now. Reviewed-by: dt
This commit is contained in:
@@ -271,9 +271,10 @@ void Qt4Project::updateFileList()
|
||||
}
|
||||
}
|
||||
|
||||
bool Qt4Project::restoreSettingsImpl(PersistentSettingsReader &settingsReader)
|
||||
bool Qt4Project::fromMap(const QVariantMap &map)
|
||||
{
|
||||
Project::restoreSettingsImpl(settingsReader);
|
||||
if (!Project::fromMap(map))
|
||||
return false;
|
||||
|
||||
if (buildConfigurations().isEmpty())
|
||||
addDefaultBuild();
|
||||
@@ -374,11 +375,6 @@ void Qt4Project::slotActiveBuildConfigurationChanged()
|
||||
emit targetInformationChanged();
|
||||
}
|
||||
|
||||
void Qt4Project::saveSettingsImpl(ProjectExplorer::PersistentSettingsWriter &writer)
|
||||
{
|
||||
Project::saveSettingsImpl(writer);
|
||||
}
|
||||
|
||||
ProjectExplorer::IBuildConfigurationFactory *Qt4Project::buildConfigurationFactory() const
|
||||
{
|
||||
return m_buildConfigurationFactory;
|
||||
|
||||
Reference in New Issue
Block a user