]> sigrok.org Git - pulseview.git/blobdiff - pv/view/viewwidget.hpp
ViewWidget: Moved in drag_items
[pulseview.git] / pv / view / viewwidget.hpp
index 5c8889e3be4cde76d2b91bc6724dd848d7bcb19a..3b22441a9e0b16f22df4cb0ffdaa7a30dd131230 100644 (file)
@@ -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_;
 };