summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-03-21 18:10:54 +0100
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2020-03-31 21:53:19 +0200
commitea813938a838be57d6a616b0175d5d650fb8c2a2 (patch)
treef49d0bb9c6108d39da9ff9e1969699dbcc9aa751 /mobile-widgets/qml
parentad540ce5e8f928c69ba8061dd9886bdb2936ed61 (diff)
downloadsubsurface-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