diff options
author | Simon Hausmann <[email protected]> | 2020-03-27 18:36:11 +0100 |
---|---|---|
committer | Simon Hausmann <[email protected]> | 2020-04-08 11:26:39 +0200 |
commit | 5422fb79486a1818d6355d75f019fe63120a43d0 (patch) | |
tree | a4b95a12034097d2941983cb216dff64081321f5 /src/network/doc/snippets/code | |
parent | 0bfbe10ff20f271cff0c0af6ca1fb1894bb48d60 (diff) |
Allow declaring QProperty<> based Q_PROPERTYies with a notify signal
This requires mostly making moc a bit more permissive, which has the
advantage that it also simplifies the code a little bit.
The newly added test case demonstrates how to connect such a property
with a change signal.
One test case needed to be changed regarding the callback as the
publicProperty member now has a (permanent) observer and therefore
re-assigning the binding will re-evaluate it as the value might have
changed.
Change-Id: Ia7edcec432de830bdd4e07d943c5d4550c175ca4
Reviewed-by: Ulf Hermann <[email protected]>
Reviewed-by: Olivier Goffart (Woboq GmbH) <[email protected]>
Diffstat (limited to 'src/network/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions