refs #545 CSetting<T>::setAndSave to set and save a setting in one step.

This commit is contained in:
Mathew Sutcliffe
2016-01-10 20:43:21 +00:00
parent d9167cf226
commit 956d393bb1
7 changed files with 33 additions and 6 deletions

View File

@@ -62,7 +62,7 @@ namespace BlackMisc
const CVariant &getValue(const Element &element) const;
//! Write the value corresponding to the element's key and begin synchronizing it to any other pages.
CStatusMessage setValue(Element &element, const CVariant &value);
CStatusMessage setValue(Element &element, const CVariant &value, bool save = false);
//! Get the key string corresponding to the element.
const QString &getKey(const Element &element) const;