subsurface/mobile-widgets/qml
Jan Mulder e6e1473e6a 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-28 18:52:35 +01:00
..
icons map-widget: move the widget and its resources to 'map-widget' 2017-11-05 14:48:56 -08:00
About.qml Get ready for 2018 2017-12-30 08:23:22 -08:00
CloudCredentials.qml QML UI: QtQuick.Layouts to 1.2 2017-11-19 12:20:43 -08:00
dive.jpg Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
DiveDetails.qml mobile cleanup: unduplicate code and do not loop over dives (1) 2018-01-28 18:52:35 +01:00
DiveDetailsEdit.qml mobile cleanup: unduplicate code and do not loop over dives (1) 2018-01-28 18:52:35 +01:00
DiveDetailsView.qml QML UI: QtQuick.Layouts to 1.2 2017-11-19 12:20:43 -08:00
DiveList.qml mobile: fix crash on delete dive from divelist 2018-01-10 20:34:16 +01:00
DownloadedDiveDelegate.qml QML UI: QtQuick.Controls to version 2.2 2017-11-19 12:20:43 -08:00
DownloadFromDiveComputer.qml mobile: reset download screen in a sane state 2017-12-13 08:23:27 -08:00
GpsList.qml mobile: newer Kirigami SHA 2018-01-03 14:04:08 +01:00
HintsTextEdit.qml mobile: silence warnings in the app log 2018-01-03 14:04:08 +01:00
Log.qml QML UI: QtQuick.Layouts to 1.2 2017-11-19 12:20:43 -08:00
main.qml mobile cleanup: unduplicate code and do not loop over dives (1) 2018-01-28 18:52:35 +01:00
mobile-resources.qrc mobile: newer Kirigami SHA 2018-01-03 14:04:08 +01:00
qtquickcontrols2.conf QML UI: Fully port dive edit to Kirigami2 2017-04-01 09:35:51 +02:00
Settings.qml QML UI: QtQuick.Layouts to 1.2 2017-11-19 12:20:43 -08:00
SsrfButton.qml QML UI: QtQuick to 2.6 2017-11-19 12:20:43 -08:00
SsrfCheckBox.qml QML UI: QtQuick to 2.6 2017-11-19 12:20:43 -08:00
SsrfSwitch.qml QML UI: QtQuick to 2.6 2017-11-19 12:20:43 -08:00
StartPage.qml QML UI: QtQuick.Layouts to 1.2 2017-11-19 12:20:43 -08:00
ThemeTest.qml QML UI: QtQuick.Layouts to 1.2 2017-11-19 12:20:43 -08:00