]> sigrok.org Git - pulseview.git/blobdiff - pv/view/cursorheader.hpp
CursorHeader: Handle all TimeItems instead of TimeMarkers
[pulseview.git] / pv / view / cursorheader.hpp
index 90a000f17997779cd613cef40e2f042e0305d787..f37112ec755aa57ab2d4df3434c514f631a3d332 100644 (file)
@@ -28,7 +28,7 @@
 namespace pv {
 namespace view {
 
-class TimeMarker;
+class TimeItem;
 
 /**
  * Widget to hold the labels over the cursors.
@@ -61,8 +61,8 @@ private:
 
        int calculateTextHeight();
 
-       std::weak_ptr<TimeMarker> grabbed_marker_;
        QPoint mouse_down_point_;
+       std::shared_ptr<TimeItem> mouse_down_item_;
        bool dragging_;
        const int textHeight_;
 };