subsurface/profile-widget
Berthold Stoeger f5e60b9618 profile: remove AbstractProfilePolygonItem::modelDataChanged()
The old mechanism to replot the profile items was to listen
to model-change signals. Then the code checked whether it
actually had to update anything by looking at the changed
model-indices.

However, the crucial replot was always initialized with
emitDataChanged(), which simple invalidated the full model
and therefore shouldCalculateStuff() always returned true.

Since now the replot() is called explicitly, remove the whole
logic and simply rename modelDataChanged() to replot().

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2021-01-10 15:57:39 -08:00
..
animationfunctions.cpp Profile: add speed parameter to Animation::* functions 2019-07-12 09:59:28 +02:00
animationfunctions.h Profile: add speed parameter to Animation::* functions 2019-07-12 09:59:28 +02:00
CMakeLists.txt profile: move DiveHandler to profile-widget folder 2020-12-12 15:52:40 -08:00
divecartesianaxis.cpp profile: explicitly update gas-axis 2021-01-10 15:57:39 -08:00
divecartesianaxis.h profile: explicitly update gas-axis 2021-01-10 15:57:39 -08:00
diveeventitem.cpp cleanup: split out divecomputer functions from dive.c 2020-10-25 13:59:52 -07:00
diveeventitem.h Profile: take int instead of bool in DiveEventItem::recalculatePos 2019-07-12 09:59:28 +02:00
divehandler.cpp profile: move DiveHandler to profile-widget folder 2020-12-12 15:52:40 -08:00
divehandler.h profile: move DiveHandler to profile-widget folder 2020-12-12 15:52:40 -08:00
divelineitem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divelineitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divepixmapitem.cpp profile: move picture removal from DivePictureItem to ProfileWidget2 2020-12-19 20:19:51 +01:00
divepixmapitem.h profile: move picture removal from DivePictureItem to ProfileWidget2 2020-12-19 20:19:51 +01:00
diveprofileitem.cpp profile: remove AbstractProfilePolygonItem::modelDataChanged() 2021-01-10 15:57:39 -08:00
diveprofileitem.h profile: remove AbstractProfilePolygonItem::modelDataChanged() 2021-01-10 15:57:39 -08:00
diverectitem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
diverectitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divetextitem.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
divetextitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divetooltipitem.cpp statistics: use RoundRectItem for legend and info-box 2021-01-03 13:56:05 -08:00
divetooltipitem.h ui: create a RoundRectItem class 2021-01-03 13:56:05 -08:00
profilewidget2.cpp profile: explicitly update profile items 2021-01-10 15:57:39 -08:00
profilewidget2.h profile: collect dive-profile items in a vector 2021-01-10 15:57:39 -08:00
qmlprofile.cpp mobile/profile: listen to dive changes and redraw profile 2020-12-21 13:12:37 -08:00
qmlprofile.h mobile/profile: listen to dive changes and redraw profile 2020-12-21 13:12:37 -08:00
ruleritem.cpp preferences: create global settingsChanged signal 2020-12-12 15:52:40 -08:00
ruleritem.h cleanup: turn protected into private members 2020-04-13 17:18:37 -07:00
tankitem.cpp profile: cleanup includes in tankitem.cpp 2021-01-10 15:57:39 -08:00
tankitem.h profile: cleanup includes in tankitem.cpp 2021-01-10 15:57:39 -08:00