refs #694 Use human readable names in cache validation messages.

This commit is contained in:
Mathew Sutcliffe
2016-07-30 21:13:56 +01:00
parent 87b2396edb
commit 98a2b3253a
3 changed files with 13 additions and 10 deletions

View File

@@ -66,11 +66,12 @@ namespace BlackMisc
//! Returns a new instance of the opaque Element type for use by CCached<T> to interact with CValuePage.
//! \param key The key string of the value in the cache.
//! \param name Human-readable name corresponding to the key.
//! \param metaType The Qt metatype ID of the value object's expected type.
//! \param validator Optional functor which returns true if the value is valid.
//! \param defaultValue Optional value which is used in case the value is invalid.
//! \param slot Optional member function of parent, will be called when value changes.
Element &createElement(const QString &key, int metaType, Validator validator, const CVariant &defaultValue, NotifySlot slot);
Element &createElement(const QString &key, const QString &name, int metaType, Validator validator, const CVariant &defaultValue, NotifySlot slot);
//! True if the currently paged value is a valid instance of the given type.
//! \threadsafe