diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-03-21 18:10:54 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2020-03-31 21:53:19 +0200 |
commit | ea813938a838be57d6a616b0175d5d650fb8c2a2 (patch) | |
tree | f49d0bb9c6108d39da9ff9e1969699dbcc9aa751 /mobile-widgets/qml | |
parent | ad540ce5e8f928c69ba8061dd9886bdb2936ed61 (diff) | |
download | subsurface-ea813938a838be57d6a616b0175d5d650fb8c2a2.tar.gz |
undo: autogenerate trivial set() and data() functions by a template
Some dive-editing undo commands have trivial setter and getter
functions: they simply read and write a struct dive member.
Autogenerate these in a template to which we pass a pointer
to member as template argument.
For the invalid-flag we have to turn the edit command from int
to bool, since that is how the flag is store in the dive struct.
Sadly, quite a number of the setters do funky things and we
cannot autogenerate them.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/qml')
0 files changed, 0 insertions, 0 deletions