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
|
||||
////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -50,7 +50,6 @@ class QmlModelManagerInterface;
|
||||
}
|
||||
|
||||
namespace QmlProjectManager {
|
||||
|
||||
class QmlProject;
|
||||
class QmlRunConfiguration;
|
||||
|
||||
@@ -193,8 +192,7 @@ private slots:
|
||||
void refreshFiles();
|
||||
|
||||
protected:
|
||||
virtual void saveSettingsImpl(ProjectExplorer::PersistentSettingsWriter &writer);
|
||||
virtual bool restoreSettingsImpl(ProjectExplorer::PersistentSettingsReader &reader);
|
||||
bool fromMap(const QVariantMap &map);
|
||||
|
||||
private:
|
||||
// plain format
|
||||
|
||||
Reference in New Issue
Block a user