forked from qt-creator/qt-creator
Core: Remove settings accessor indirection via MainWindow
Change-Id: I2ece1fb47eb48c4e56561ed2c947dc1c997af344 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -298,6 +298,7 @@
|
||||
#include <QStatusBar>
|
||||
|
||||
using namespace Core::Internal;
|
||||
using namespace ExtensionSystem;
|
||||
|
||||
namespace Core {
|
||||
|
||||
@@ -356,7 +357,10 @@ bool ICore::showWarningWithOptions(const QString &title, const QString &text,
|
||||
|
||||
QSettings *ICore::settings(QSettings::Scope scope)
|
||||
{
|
||||
return m_mainwindow->settings(scope);
|
||||
if (scope == QSettings::UserScope)
|
||||
return PluginManager::settings();
|
||||
else
|
||||
return PluginManager::globalSettings();
|
||||
}
|
||||
|
||||
SettingsDatabase *ICore::settingsDatabase()
|
||||
|
||||
Reference in New Issue
Block a user