subsurface/qt-models
Berthold Stoeger 3c0c1801cd Dive pictures: change removePicture() interface
The function removePicture() had a flag "last", which would indicate
that the called had finished removing pictures. Only then would
the model be recalculated.

This is a strange interface and, matter of fact, the caller was buggy:
if the last picture to be removed didn't have a proper url, removePicture()
was never called with "last" being set.

Change the interface to take a list of pictures to be deleted. This
will allow us to make picture deletion smarter in follow-up commits.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-05-21 22:17:28 +03:00
..
cleanertablemodel.cpp Add SPDX header to Qt models 2017-04-29 13:32:55 -07:00
cleanertablemodel.h Add SPDX header to Qt models 2017-04-29 13:32:55 -07:00
CMakeLists.txt Corrected file name "weigthsysteminfomodel" to "weightsysteminfomodel" 2018-05-11 02:23:51 +03:00
completionmodels.cpp Add SPDX header to Qt models 2017-04-29 13:32:55 -07:00
completionmodels.h Add SPDX header to Qt models 2017-04-29 13:32:55 -07:00
cylindermodel.cpp Core: remove dive.h from files that don't need it 2018-05-14 10:13:39 -07:00
cylindermodel.h Planner: Autom. move first datapoint gas to first gaslist position 2017-10-16 17:14:17 +02:00
divecomputerextradatamodel.cpp Add SPDX header to Qt models 2017-04-29 13:32:55 -07:00
divecomputerextradatamodel.h Add SPDX header to Qt models 2017-04-29 13:32:55 -07:00
divecomputermodel.cpp Add SPDX header to Qt models 2017-04-29 13:32:55 -07:00
divecomputermodel.h Add SPDX header to Qt models 2017-04-29 13:32:55 -07:00
diveimportedmodel.cpp Only call autogroup when it's enabled 2017-11-25 08:12:28 -08:00
diveimportedmodel.h Core: remove dive.h from files that don't need it 2018-05-14 10:13:39 -07:00
divelistmodel.cpp mobile: fix crash on delete dive from divelist 2018-01-10 20:34:16 +01:00
divelistmodel.h Core: remove dive.h from files that don't need it 2018-05-14 10:13:39 -07:00
divelocationmodel.cpp Cleanup: introduce copy_qstring() function 2018-03-14 13:55:36 +02:00
divelocationmodel.h mobile cleanup: restyle construction of locationlist 2018-01-31 14:48:14 +01:00
divepicturemodel.cpp Dive pictures: change removePicture() interface 2018-05-21 22:17:28 +03:00
divepicturemodel.h Dive pictures: change removePicture() interface 2018-05-21 22:17:28 +03:00
diveplannermodel.cpp Planner: Add combo box for dive mode selection 2018-05-14 23:47:00 +03:00
diveplannermodel.h Add planner infra structure for bailout 2018-05-14 23:47:00 +03:00
diveplotdatamodel.cpp Core: remove dive.h from files that don't need it 2018-05-14 10:13:39 -07:00
diveplotdatamodel.h Plot OC-pO2 graph for SCR dives 2018-04-28 20:11:22 +03:00
divetripmodel.cpp Core: remove dive.h from files that don't need it 2018-05-14 10:13:39 -07:00
divetripmodel.h Add "Tags" column in Desktop app's dive list view 2018-04-04 14:10:45 +03:00
filtermodels.cpp Core: introduce new subsurface-string header 2018-05-14 10:13:39 -07:00
filtermodels.h Introduce negate-toggle buttons to filter lists 2017-12-26 13:08:49 -08:00
gpslistmodel.cpp Unused code: GpsListModel::addGpsFix() 2018-01-10 16:45:42 +01:00
gpslistmodel.h Unused code: GpsListModel::addGpsFix() 2018-01-10 16:45:42 +01:00
maplocationmodel.cpp cleanup: Uninitialized scalar field 2017-12-28 17:30:25 +01:00
maplocationmodel.h map-widget: allow real-time updates of edited markers 2017-11-09 12:40:25 -08:00
messagehandlermodel.cpp mobile: add "Copy log to clipboard" button 2018-05-18 12:43:15 -07:00
messagehandlermodel.h mobile: add "Copy log to clipboard" button 2018-05-18 12:43:15 -07:00
models.cpp Planner: Add combo box for dive mode selection 2018-05-14 23:47:00 +03:00
models.h Planner: Add combo box for dive mode selection 2018-05-14 23:47:00 +03:00
ssrfsortfilterproxymodel.cpp Add SPDX header to Qt models 2017-04-29 13:32:55 -07:00
ssrfsortfilterproxymodel.h Add SPDX header to Qt models 2017-04-29 13:32:55 -07:00
tankinfomodel.cpp Remove superfluous QScopedPointer<>s in singletons 2017-12-24 11:04:10 -08:00
tankinfomodel.h Add SPDX header to Qt models 2017-04-29 13:32:55 -07:00
treemodel.cpp Add SPDX header to Qt models 2017-04-29 13:32:55 -07:00
treemodel.h Add SPDX header to Qt models 2017-04-29 13:32:55 -07:00
weightmodel.cpp Core: remove dive.h from files that don't need it 2018-05-14 10:13:39 -07:00
weightmodel.h Add SPDX header to Qt models 2017-04-29 13:32:55 -07:00
weightsysteminfomodel.cpp Corrected file name "weigthsysteminfomodel" to "weightsysteminfomodel" 2018-05-11 02:23:51 +03:00
weightsysteminfomodel.h Corrected file name "weigthsysteminfomodel" to "weightsysteminfomodel" 2018-05-11 02:23:51 +03:00
yearlystatisticsmodel.cpp Rename enum dive_comp_type to divemode_t 2018-05-14 23:47:00 +03:00
yearlystatisticsmodel.h Add SPDX header to Qt models 2017-04-29 13:32:55 -07:00