]> sigrok.org Git - pulseview.git/blobdiff - pv/view/timeitem.hpp
ViewItem: Use drag_point() with drag_by()
[pulseview.git] / pv / view / timeitem.hpp
index 8374244215807b5c34e4433c441c8f4a19582e6d..ba4ce8b6d69799a8d1b828461c738435e5b0e988 100644 (file)
@@ -49,11 +49,10 @@ public:
        virtual float get_x() const = 0;
 
        /**
-        * Paints the marker's label to the ruler.
-        * @param p The painter to draw with.
-        * @param rect The rectangle of the ruler client area.
+        * Drags the item to a delta relative to the drag point.
+        * @param delta the offset from the drag point.
         */
-       virtual void paint_label(QPainter &p, const QRect &rect) = 0;
+       void drag_by(const QPoint &delta);
 
 protected:
        View &view_;