Jan Mulder
fed2c5b6a1
mobile cleanup: unduplicate code and do not loop over dives (1)
...
This is the first of a set of commits that are (very) similar.
It appeared that a number of more or less static lists, which are
constructed by a loop over all dives in the logbook, were executed
when changing focus to a next dive. For example, the in this
commit addressed list of used dive suits.
What was wrong was that the suitList was linked to a dive. There
is only a need to construct the list of used suits when data is
changed (and obviously, once on startup of the app). Further, it
appeared that a lot of code was duplicated and that we can use
(in this case) the same code from the desktop completionmodels.cpp.
Basically, this commit involves the following changes:
- include completionmodels.cpp in mobile and desktop (so move
it from the desktop only category to the generic category).
- remove double code from DiveObjectHelper.cpp
- Do not differentiate in the init phase and the normal refresh
of the list
- the per dive logic is now only the getting of a previously
constructed list (in init or update of the divelist).
There are no visible changes in the UI, other than a better
performance when scrolling over dive details.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2018-01-31 14:48:14 +01:00
..
2018-01-31 14:48:14 +01:00
2017-11-03 07:49:11 -07:00
2017-12-27 17:24:12 -08:00
2017-10-12 09:43:40 +02:00
2017-12-06 02:23:47 +01:00
2017-12-06 02:23:47 +01:00
2017-11-18 21:57:33 +01:00
2017-10-26 20:44:02 +02:00
2018-01-08 06:06:12 +02:00
2017-07-21 16:33:19 -07:00
2017-05-31 21:53:00 -07:00
2018-01-10 21:25:02 +01:00
2018-01-10 21:25:02 +01:00
2016-04-04 22:33:58 -07:00
2017-09-28 08:51:34 +02:00
2017-04-29 13:32:55 -07:00
2017-11-17 15:29:42 +01:00
2017-04-29 13:32:55 -07:00
2018-01-24 16:19:09 +01:00
2017-10-12 09:32:12 +02:00
2017-12-27 17:14:43 -08:00
2017-05-07 07:48:12 -07:00
2017-12-25 19:47:45 +01:00
2017-11-25 20:13:01 +01:00
2017-11-13 20:50:10 -08:00
2017-04-29 13:32:55 -07:00
2017-05-04 10:50:15 -07:00
2017-05-04 10:50:15 -07:00
2017-11-13 20:50:10 -08:00
2018-01-21 15:24:46 +01:00
2018-01-31 14:47:26 +01:00
2018-01-11 06:07:13 +01:00
2017-04-29 13:32:55 -07:00
2018-01-11 06:07:13 +01:00
2018-01-10 16:45:42 +01:00
2017-05-26 15:50:52 -07:00
2017-04-29 13:32:55 -07:00
2017-12-08 16:29:49 +01:00
2018-01-11 06:07:13 +01:00
2017-10-17 06:12:07 -04:00
2018-01-06 09:21:16 +01:00
2017-04-29 13:32:55 -07:00
2017-12-31 07:56:33 -08:00
2017-11-13 20:48:17 -08:00
2018-01-10 16:45:42 +01:00
2018-01-31 14:47:26 +01:00
2017-05-06 08:07:16 -07:00
2017-04-29 13:32:55 -07:00
2018-01-11 06:07:13 +01:00
2018-01-08 09:52:55 +02:00
2017-05-26 15:52:04 -07:00
2017-12-17 10:25:01 -08:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-12-24 11:04:10 -08:00
2017-04-29 13:32:55 -07:00
2018-01-19 09:45:08 +02:00
2018-01-19 09:45:08 +02:00
2018-01-10 16:45:42 +01:00
2018-01-10 16:45:42 +01:00
2017-05-26 15:50:52 -07:00
2017-12-29 09:14:20 -08:00
2017-04-29 13:32:55 -07:00
2017-11-29 01:22:17 +01:00
2018-01-11 06:07:13 +01:00
2018-01-08 09:52:55 +02:00
2017-12-27 20:45:24 +01:00
2017-11-29 01:22:17 +01:00
2017-12-17 10:25:01 -08:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2018-01-11 06:07:13 +01:00
2017-07-09 12:50:22 -07:00
2018-01-11 06:07:13 +01:00
2018-01-10 16:45:42 +01:00
2018-01-19 12:38:11 +02:00
2018-01-11 06:07:13 +01:00
2017-10-08 19:41:54 +03:00
2017-11-27 13:42:10 -08:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-12-29 09:14:20 -08:00
2018-01-19 12:38:11 +02:00
2018-01-11 06:07:13 +01:00
2018-01-05 00:29:20 +01:00
2018-01-26 07:04:45 +01:00
2017-05-26 15:44:36 -07:00
2018-01-24 22:03:42 +01:00
2018-01-10 16:45:42 +01:00
2018-01-10 16:45:42 +01:00
2018-01-06 10:46:07 -08:00
2017-11-25 07:41:09 -08:00
2017-12-21 00:04:30 +01:00
2017-11-25 20:13:01 +01:00
2017-12-28 17:30:25 +01:00
2017-07-19 06:21:23 -07:00
2017-11-19 12:20:43 -08:00
2018-01-19 09:39:07 +02:00
2018-01-11 06:07:13 +01:00
2018-01-18 17:36:31 +02:00
2017-12-14 17:01:05 +01:00
2017-11-20 10:01:15 +01:00
2018-01-19 12:38:11 +02:00
2017-07-20 17:32:54 -07:00
2017-04-29 13:32:55 -07:00
2018-01-19 12:38:11 +02:00
2017-12-12 21:16:19 -08:00
2016-04-04 22:33:58 -07:00
2016-04-04 22:33:58 -07:00
2017-12-17 10:25:01 -08:00
2017-05-26 15:50:52 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2018-01-11 06:07:13 +01:00
2017-11-25 07:41:09 -08:00
2017-05-27 11:07:20 -07:00
2017-04-29 13:32:55 -07:00
2017-10-07 08:16:53 -07:00
2017-10-04 08:05:09 -07:00
2017-04-29 13:32:55 -07:00
2018-01-31 14:47:47 +01:00
2018-01-10 16:45:42 +01:00
2017-04-29 13:32:55 -07:00
2017-11-24 07:56:10 -08:00
2017-04-29 13:32:55 -07:00
2016-04-04 22:33:58 -07:00
2017-04-29 13:32:55 -07:00
2017-11-22 19:22:29 +01:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-07-30 16:28:30 -07:00
2017-04-29 13:32:55 -07:00