X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fviewwidget.hpp;h=6fd1ecefd1f853a2403fc880cacb36c1c699a108;hb=282905348863fe871a48c680bd12bc1dee364a43;hp=b6b1a5b48ec99a8166ba426c03f8425d43437578;hpb=1c91f1a230ac7f61ad0c2ed9718d12514353b629;p=pulseview.git diff --git a/pv/view/viewwidget.hpp b/pv/view/viewwidget.hpp index b6b1a5b..6fd1ece 100644 --- a/pv/view/viewwidget.hpp +++ b/pv/view/viewwidget.hpp @@ -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. */