subsurface/profile-widget
Berthold Stoeger 457be51ff6 profile: remove redundant replot() calls in key events
When moving "dive handlers" with the cursor keys, the
profile was replot twice:

- First the recalculation of the planner model was suspended.
- The "stop" was moved.
- This led to a replot by a signal from the planner model.
  However, the old profile was shown, since the recalculation
  was suspended.
- The recalculation was reenabled.
- The profile war replot, resulting now in the correct profile.

A classical case of bit rot.

Instead, don't suspend calculation in the first place. This
shows the correct profile on the first replot and the second
replot can be removed.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2021-04-02 13:53:23 -07: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 profile: initialize DiveEventItem::dive to null 2021-03-05 08:30:23 +01:00
diveeventitem.h profile: pass dive to EventItem 2021-01-10 15:57:39 -08:00
divehandler.cpp profile use unique_ptr to manage dive handler objects 2021-04-02 13:53:23 -07:00
divehandler.h profile: pass dive to DiveHandler 2021-01-10 15:57:39 -08:00
divelineitem.cpp
divelineitem.h
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: fix color on pressure-item 2021-03-31 08:48:38 -07:00
diveprofileitem.h planner: pass in_planner argument to replot() 2021-02-17 07:26:55 -08:00
diverectitem.cpp
diverectitem.h
divetextitem.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
divetextitem.h
divetooltipitem.cpp planner: pass in_planner argument to decoMode() 2021-02-17 07:26:55 -08:00
divetooltipitem.h planner: pass in_planner argument to decoMode() 2021-02-17 07:26:55 -08:00
profilewidget2.cpp profile: remove redundant replot() calls in key events 2021-04-02 13:53:23 -07:00
profilewidget2.h profile: make ItemPos initialization constant 2021-04-02 13:53:23 -07:00
qmlprofile.cpp profile: display arbitrary dive 2021-04-02 13:53:23 -07:00
qmlprofile.h mobile/profile: listen to dive changes and redraw profile 2020-12-21 13:12:37 -08:00
ruleritem.cpp profile: pass dive to RulerItem 2021-01-10 15:57:39 -08:00
ruleritem.h profile: pass dive to RulerItem 2021-01-10 15:57:39 -08:00
tankitem.cpp cleanup: constify TankItem::setData() 2021-01-20 10:01:50 -08:00
tankitem.h cleanup: constify TankItem::setData() 2021-01-20 10:01:50 -08:00