subsurface/qt-quick
Berthold Stoeger a527415ac9 profile: move dragging code from stats to general qt-code
So far, the only dragable item was the legend in the statistics
code. On the profile, we will have multiple dragable items.

Therefore, move the code up and make it more general. This
took some reorganization. Now, the size of the ChartItem
is saved in the base class. Also, setPos() became a virtual
function.

The dragable items are kept as an unsorted list.
If there will be many of them, this should be changed to
some sort of sorted list (maybe quadtree?).

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-09-12 15:15:31 +02:00
..
chartitem.cpp profile: move dragging code from stats to general qt-code 2024-09-12 15:15:31 +02:00
chartitem.h profile: move dragging code from stats to general qt-code 2024-09-12 15:15:31 +02:00
chartitem_ptr.h stats: break out common QtQuick part of the code 2024-09-11 10:35:04 +02:00
chartitemhelper.h stats: break out common QtQuick part of the code 2024-09-11 10:35:04 +02:00
chartview.cpp profile: move dragging code from stats to general qt-code 2024-09-12 15:15:31 +02:00
chartview.h profile: move dragging code from stats to general qt-code 2024-09-12 15:15:31 +02:00
CMakeLists.txt stats: break out common QtQuick part of the code 2024-09-11 10:35:04 +02:00