]> sigrok.org Git - pulseview.git/blobdiff - pv/view/viewwidget.hpp
Viewport: Implemented on-canvas drag
[pulseview.git] / pv / view / viewwidget.hpp
index b6b1a5b48ec99a8166ba426c03f8425d43437578..6fd1ecefd1f853a2403fc880cacb36c1c699a108 100644 (file)
@@ -65,6 +65,23 @@ protected:
         */
        void drag_items(const QPoint &delta);
 
+       /**
+        * Sets this item into the dragged state.
+        */
+       virtual void drag();
+
+       /**
+        * Drag the background by the delta offset.
+        * @param delta the drag offset in pixels.
+        * @remarks The default implementation does nothing.
+        */
+       virtual void drag_by(const QPoint &delta);
+
+       /**
+        * Sets this item into the un-dragged state.
+        */
+       virtual void drag_release();
+
        /**
         * Gets the items in the view widget.
         */