X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Ftimeitem.hpp;h=ba4ce8b6d69799a8d1b828461c738435e5b0e988;hb=23e75650eba0491b2636de3cef87f893e38ae6f3;hp=f988488409c18426aebab42b720dab2d54731987;hpb=c3bb03ffcd63e5bb4a98e46313a71de96a544081;p=pulseview.git diff --git a/pv/view/timeitem.hpp b/pv/view/timeitem.hpp index f988488..ba4ce8b 100644 --- a/pv/view/timeitem.hpp +++ b/pv/view/timeitem.hpp @@ -48,6 +48,12 @@ public: virtual float get_x() const = 0; + /** + * Drags the item to a delta relative to the drag point. + * @param delta the offset from the drag point. + */ + void drag_by(const QPoint &delta); + protected: View &view_; };