summaryrefslogtreecommitdiffstats
path: root/android-mobile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-06 06:54:03 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-08 20:50:05 +0100
commit6095a5f04f204e786136eb203630f728a3df2983 (patch)
tree326f8aeb8a20aece1db3f7c4e050579881ecccb7 /android-mobile
parentb01e9fb0a833e5cc2da16ae7d1bb1f2a6e92b465 (diff)
downloadsubsurface-6095a5f04f204e786136eb203630f728a3df2983.tar.gz
Mobile: add second filter proxy model for dive list
This one significantly reduces the number of dives that are handed to the ListView in QML. For every trip that isn't expanded (only zero or one trips are expanded at any time, so almost all the others are collapsed), send only first dive to the View to allow creation of the section. Hide the rest so we don't have all these invisible, zero height entries for the vertical dive list. A big part of this commit is moving a few functions from the DiveListSortModel to the CollapsedDiveListSortModel. Those are the ones that are needed for the trip header. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'android-mobile')
0 files changed, 0 insertions, 0 deletions