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

@@ -32,6 +32,7 @@
#include "core_global.h"
#include <QtCore/QObject>
#include <QtCore/QSettings>
QT_BEGIN_NAMESPACE
class QMainWindow;
@@ -40,6 +41,7 @@ class QSettings;
template <class T> class QList;
QT_END_NAMESPACE
namespace Core {
class ActionManager;
@@ -93,7 +95,7 @@ public:
virtual ModeManager *modeManager() const = 0;
virtual MimeDatabase *mimeDatabase() const = 0;
virtual QSettings *settings() const = 0;
virtual QSettings *settings(QSettings::Scope scope = QSettings::UserScope) const = 0;
virtual SettingsDatabase *settingsDatabase() const = 0;
virtual QPrinter *printer() const = 0;