mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Grantlee: split out grantlee-only property from DiveObjectHelper
The cylindersObject list was only used by grantlee but not by the mobile code. Since it is quite heavy, split it out and thus don't generate it for every dive on mobile. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
6a9df3bba3
commit
718c07c1a8
4 changed files with 32 additions and 10 deletions
|
@ -143,7 +143,7 @@ GRANTLEE_END_LOOKUP
|
|||
// TODO: This is currently needed because our grantlee version
|
||||
// doesn't support Q_GADGET based classes. A patch to fix this
|
||||
// exists. Remove in due course.
|
||||
GRANTLEE_BEGIN_LOOKUP(DiveObjectHelper)
|
||||
GRANTLEE_BEGIN_LOOKUP(DiveObjectHelperGrantlee)
|
||||
if (property == "number") {
|
||||
return object.number;
|
||||
} else if (property == "id") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue