profile: convert the "ruler item" to qt-quick

Code is mostly based on the "tooltip item". The dragging code was
slightly reworked to be more logical. A "disk item" was added for
the handles.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-01-12 22:26:32 +01:00
parent b167e130a4
commit ea0085fef6
14 changed files with 313 additions and 228 deletions

View file

@ -182,7 +182,8 @@ SOURCES += subsurface-mobile-main.cpp \
profile-widget/tooltipitem.cpp \
profile-widget/divelineitem.cpp \
profile-widget/divetextitem.cpp \
profile-widget/profileview.cpp
profile-widget/profileview.cpp \
profile-widget/ruleritem.cpp
HEADERS += \
commands/command_base.h \
@ -345,7 +346,9 @@ HEADERS += \
profile-widget/divelineitem.h \
profile-widget/divepixmapcache.h \
profile-widget/divetextitem.h \
profile-widget/profileview.h
profile-widget/profileview.h \
profile-widget/ruleritem.h \
profile-widget/profiletranslations.h
RESOURCES += mobile-widgets/qml/mobile-resources.qrc \
mobile-widgets/3rdparty/icons.qrc \