X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fmarginwidget.hpp;h=029d68e5214970d700c4e3e0240b8c79935044ba;hb=1dffa582704bb6acb144a3e89bd6eb0e2ccf4f25;hp=54ace028fcda121bd79588c20a1b32d6af159c67;hpb=2f7982367e8382e05c862de7afc71075ded5f606;p=pulseview.git diff --git a/pv/view/marginwidget.hpp b/pv/view/marginwidget.hpp index 54ace02..029d68e 100644 --- a/pv/view/marginwidget.hpp +++ b/pv/view/marginwidget.hpp @@ -24,15 +24,15 @@ #include #include -#include + +#include "viewwidget.hpp" namespace pv { namespace view { -class View; class ViewItem; -class MarginWidget : public QWidget +class MarginWidget : public ViewWidget { Q_OBJECT @@ -67,18 +67,6 @@ protected: */ void show_popup(const std::shared_ptr &item); - /** - * Returns true if the selection of row items allows dragging. - * @return Returns true if the drag is acceptable. - */ - virtual bool accept_drag() const = 0; - - /** - * Drag the dragging items by the delta offset. - * @param delta the drag offset in pixels. - */ - virtual void drag_items(const QPoint &delta) = 0; - /** * Handles left mouse button press events. * @param event the mouse event that triggered this handler. @@ -109,7 +97,6 @@ Q_SIGNALS: void selection_changed(); protected: - pv::view::View &view_; QPoint mouse_point_; QPoint mouse_down_point_; std::shared_ptr mouse_down_item_;