X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftimeitem.hpp;h=ba4ce8b6d69799a8d1b828461c738435e5b0e988;hp=8374244215807b5c34e4433c441c8f4a19582e6d;hb=18ca62d26394f2ffe6e993ff02cd64958b2cee1b;hpb=dbfae3f1b55b984c7ee7e619a8da53b77db98c90 diff --git a/pv/view/timeitem.hpp b/pv/view/timeitem.hpp index 83742442..ba4ce8b6 100644 --- a/pv/view/timeitem.hpp +++ b/pv/view/timeitem.hpp @@ -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_;