23 using Command::Command;
26 template <
typename T,
typename... Args>
28 : m_path{
Path<T>(obj).unsafePath()}
29 , m_property{std::move(property)}
30 , m_old{obj.property(m_property.toUtf8().constData())}
31 , m_new{std::move(newval)}
40 template <
typename Path_T>
41 void update(
const Path_T&, QVariant newval)
43 m_new = std::move(newval);
53 QVariant m_old, m_new;
60 using model_t =
typename T::model_type;
61 using param_t =
typename T::param_type;
66 using score::Command::Command;
72 , m_old{(obj.*T::get)()}
73 , m_new{
std::forward<U>(newval)}
79 template <
typename Path_T,
typename U>
80 void update(
const Path_T&, U&& newval)
82 m_new = std::forward<U>(newval);
87 (m_path.find(ctx).*T::set)(m_old);
92 (m_path.find(ctx).*T::set)(m_new);
98 s << m_path << m_old << m_new;
103 s >> m_path >> m_old >> m_new;
107 param_t m_old, m_new;
Definition DocumentContext.hpp:18