| 73 | } |
| 74 | |
| 75 | void PropertyBinder::syncSourceToDestination() |
| 76 | { |
| 77 | if (!m_destination || m_lock) |
| 78 | return; |
| 79 | |
| 80 | m_lock = true; |
| 81 | for (const auto &b : std::as_const(m_properties)) |
| 82 | b.destinationProperty.write(m_destination, b.sourceProperty.read(m_source)); |
| 83 | m_lock = false; |
| 84 | } |
| 85 | |
| 86 | void PropertyBinder::syncDestinationToSource() |
| 87 | { |