subsurface/profile-widget
Berthold Stoeger 777a57356b profile: fix ESC in planner
When in the planner, ESC should cancel the plan.

However, when the user manipulates the dive-handles in the
profile and presses ESC, first nothing happens, then an obscure
message appears.

The reason is that ESC "shortcuts" are introduced in two places.

To fix this, remove the ESC shortcut in the profile (the planner
widget cancels the plan anyway) and replace all the shortcuts in
the profile with a simple override of the keyPressEvent().

The latter is not strictly necessary, but hopefully avoids further
complications with multiple shortcuts. And the code is easier
to follow too.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2022-02-19 10:47:49 -08:00
..
animationfunctions.cpp profile: remove unused animation functions 2021-12-17 11:54:23 -08:00
animationfunctions.h profile: remove unused animation functions 2021-12-17 11:54:23 -08:00
CMakeLists.txt profile: cache pixmaps for dive event items 2021-12-17 11:54:23 -08:00
divecartesianaxis.cpp profile: reformat timestamp labels 2021-12-17 11:54:23 -08:00
divecartesianaxis.h profile: don't show 0m label 2021-12-17 11:54:23 -08:00
diveeventitem.cpp profile: don't plot event-icons outside of range 2021-12-17 11:54:23 -08:00
diveeventitem.h profile: don't plot event-icons outside of range 2021-12-17 11:54:23 -08:00
divehandler.cpp profile: rewrite ProfileScene::pointOnProfile() 2021-12-17 11:54:23 -08:00
divehandler.h profile: pass dive to DiveHandler 2021-01-10 15:57:39 -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
divepercentageitem.cpp profile: reimplement DivePercentageItem 2021-12-17 11:54:23 -08:00
divepercentageitem.h profile: remove ProfileScene::dataModel 2021-12-17 11:54:23 -08:00
divepixmapcache.cpp profile: remove special iOS DPR handling for event icons 2021-12-17 11:54:23 -08:00
divepixmapcache.h profile: cache pixmaps for dive event items 2021-12-17 11:54:23 -08: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: use unique_ptr to store DiveTextItems 2021-12-17 11:54:23 -08:00
diveprofileitem.h profile: use unique_ptr to store DiveTextItems 2021-12-17 11:54:23 -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 profile: improve calculation of the right border 2021-12-17 11:54:23 -08:00
divetextitem.h profile: improve calculation of the right border 2021-12-17 11:54:23 -08:00
divetooltipitem.cpp cleanup: replace membuffer by membufferpp in C-code 2021-07-23 11:22:43 -07:00
divetooltipitem.h cleanup: remove function static variables 2021-07-20 09:27:35 -07:00
profilescene.cpp profile: call plotProfile() with correct parameters in draw() 2022-01-20 15:45:51 +01:00
profilescene.h profile: fix crosshairs 2021-12-17 11:54:23 -08:00
profilewidget2.cpp profile: fix ESC in planner 2022-02-19 10:47:49 -08:00
profilewidget2.h profile: fix ESC in planner 2022-02-19 10:47:49 -08:00
qmlprofile.cpp profile: don't render mobile profile in printmode 2021-12-17 11:54:23 -08:00
qmlprofile.h profile: merge plotDive() into draw() call 2021-12-17 11:54:23 -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 profile: fix tankbar 2022-01-17 13:05:38 -08:00
tankitem.h profile: only plot visible range of tank info 2021-12-17 11:54:23 -08:00