diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-08-13 22:48:18 +0200 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2019-09-14 13:20:59 +0200 |
commit | 6a9df3bba3021b95f354c0590c79a458dbeca45b (patch) | |
tree | 68c5adc6d6bf8ab26e5bb56139c22f2913e65a0f /core/save-profiledata.h | |
parent | 981c23070693b69a3b6a854a41cc91c8516abb95 (diff) | |
download | subsurface-6a9df3bba3021b95f354c0590c79a458dbeca45b.tar.gz |
Mobile: transform DiveObjectHelper into value-type
Instead of handing a reference-to-dive to QML, prerender all the needed
properties and store them as values in DiveObjectHelper. Exception:
- date(): generated from timestamp
- time(): generated from timestamp
- cylinderList(): does not depend on dive anyway and should be made
static.
This hopefully avoids the random mobile crashes that we are seeing.
Clearly, this code needs to be optimized, but it is a start.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/save-profiledata.h')
0 files changed, 0 insertions, 0 deletions