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:
@@ -281,9 +281,9 @@ QStringList QmlProject::files(FilesMode) const
|
||||
return files();
|
||||
}
|
||||
|
||||
bool QmlProject::restoreSettingsImpl(ProjectExplorer::PersistentSettingsReader &reader)
|
||||
bool QmlProject::fromMap(const QVariantMap &map)
|
||||
{
|
||||
Project::restoreSettingsImpl(reader);
|
||||
Project::fromMap(map);
|
||||
|
||||
if (runConfigurations().isEmpty()) {
|
||||
QmlRunConfiguration *runConf = new QmlRunConfiguration(this);
|
||||
@@ -294,11 +294,6 @@ bool QmlProject::restoreSettingsImpl(ProjectExplorer::PersistentSettingsReader &
|
||||
return true;
|
||||
}
|
||||
|
||||
void QmlProject::saveSettingsImpl(ProjectExplorer::PersistentSettingsWriter &writer)
|
||||
{
|
||||
Project::saveSettingsImpl(writer);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////
|
||||
// QmlProjectFile
|
||||
////////////////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user