Allow access to system scope setting.

This commit add a Settings::Scope parameter to
Core::ICore::settings(), the default is UserScope,
which falls back to SystemScope. Specifying SystemScope
instead gives exclusive access to the SystemScope.
This commit is contained in:
Daniel Molkentin
2010-01-13 17:37:53 +01:00
parent 88e24a61d6
commit 047901aab2
6 changed files with 27 additions and 6 deletions

View File

@@ -31,6 +31,7 @@
#include <QtCore/QDir>
#include <QtCore/QCoreApplication>
#include <QtCore/QSettings>
namespace Core {
namespace Internal {
@@ -135,9 +136,9 @@ MimeDatabase *CoreImpl::mimeDatabase() const
return m_mainwindow->mimeDatabase();
}
QSettings *CoreImpl::settings() const
QSettings *CoreImpl::settings(QSettings::Scope scope) const
{
return m_mainwindow->settings();
return m_mainwindow->settings(scope);
}
SettingsDatabase *CoreImpl::settingsDatabase() const