diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2014-11-05 11:55:24 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2014-11-07 13:08:38 +0100 |
commit | 44016e08d1ea2b2e09a55db00d17078014a7d76b (patch) | |
tree | 810f2454641641ab44b410dcc8b49e9d8a590008 /src/lib/corelib/tools/settingsmodel.h | |
parent | bd3764d42ed06769ce854f974c6e448ea3263e87 (diff) |
Allow bulk changes to the settings model data.
Intended use case is to allow users of Qt Creator to supply a
set of properties that add to or override what's currently in
the settings.
Change-Id: I4355763905eca97f63e90f9c8320d77e6a99dfe5
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/lib/corelib/tools/settingsmodel.h')
-rw-r--r-- | src/lib/corelib/tools/settingsmodel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/corelib/tools/settingsmodel.h b/src/lib/corelib/tools/settingsmodel.h index e491282f7..a2cc86b32 100644 --- a/src/lib/corelib/tools/settingsmodel.h +++ b/src/lib/corelib/tools/settingsmodel.h @@ -31,6 +31,7 @@ #include <tools/qbs_export.h> #include <QAbstractItemModel> +#include <QVariantMap> namespace qbs { @@ -46,6 +47,7 @@ public: bool hasUnsavedChanges() const; void setEditable(bool isEditable); + void setAdditionalProperties(const QVariantMap &properties); // Flat map. void reload(); void save(); |