mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #694 Use human readable names in cache validation messages.
This commit is contained in:
@@ -358,7 +358,7 @@ namespace BlackMisc
|
||||
template <typename U, typename F>
|
||||
CCached(CValueCache *cache, const QString &key, const QString &name, F validator, const T &defaultValue, U *owner, NotifySlot<U> slot = nullptr) :
|
||||
m_page(Private::CValuePage::getPageFor(owner, cache)),
|
||||
m_element(m_page.createElement(key, qMetaTypeId<T>(), wrap(validator), CVariant::from(defaultValue), slot_cast(slot)))
|
||||
m_element(m_page.createElement(key, name, qMetaTypeId<T>(), wrap(validator), CVariant::from(defaultValue), slot_cast(slot)))
|
||||
{
|
||||
cache->setHumanReadableName(key, name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user