X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fviewwidget.hpp;h=3b22441a9e0b16f22df4cb0ffdaa7a30dd131230;hp=5c8889e3be4cde76d2b91bc6724dd848d7bcb19a;hb=1dffa582704bb6acb144a3e89bd6eb0e2ccf4f25;hpb=40aca27ed83559f7f79873e353f64d2c36a18fce diff --git a/pv/view/viewwidget.hpp b/pv/view/viewwidget.hpp index 5c8889e3..3b22441a 100644 --- a/pv/view/viewwidget.hpp +++ b/pv/view/viewwidget.hpp @@ -35,6 +35,18 @@ class ViewWidget : public QWidget protected: ViewWidget(View &parent); + /** + * Returns true if the selection of row items allows dragging. + * @return Returns true if the drag is acceptable. + */ + bool accept_drag() const; + + /** + * Drag the dragging items by the delta offset. + * @param delta the drag offset in pixels. + */ + void drag_items(const QPoint &delta); + protected: pv::view::View &view_; };