refs #759, #761 Track when a cache value notify slot is a member function to avoid duplicate calls.

This commit is contained in:
Mathew Sutcliffe
2016-09-09 17:48:56 +01:00
committed by Roland Winklmeier
parent ad0a7f9526
commit aeb15ea7be
4 changed files with 10 additions and 7 deletions

View File

@@ -63,7 +63,7 @@ namespace BlackMisc
using Validator = std::function<bool(const CVariant &)>;
//! Functor used to notify parent of changes.
using NotifySlot = std::function<void(QObject *)>;
using NotifySlot = std::pair<std::function<void(QObject *)>, void (QObject::*)()>;
//! 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.