SettingsAccessor: Add QWidget *parent parameter to saveSettings

The PersistentSettings::writeFile needs it, and SettingsAccessor
should not hardcode it to Core::ICore::mainWindow()

Change-Id: I6ca99e9cd861fd81337028055fe0ed4d158b152f
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Tobias Hunger
2014-02-25 18:10:42 +01:00
parent 7309b6a2d9
commit 0c397dd1c3
3 changed files with 8 additions and 7 deletions

View File

@@ -38,6 +38,7 @@
#include <coreplugin/idocument.h>
#include <coreplugin/icontext.h>
#include <coreplugin/icore.h>
#include <projectexplorer/buildmanager.h>
#include <projectexplorer/kitmanager.h>
#include <limits>
@@ -303,7 +304,7 @@ void Project::saveSettings()
emit aboutToSaveSettings();
if (!d->m_accessor)
d->m_accessor = new Internal::UserFileAccessor(this);
d->m_accessor->saveSettings(toMap());
d->m_accessor->saveSettings(toMap(), Core::ICore::mainWindow());
}
bool Project::restoreSettings()