X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fheader.hpp;h=f12d23ca5852f40a1707301e38b2d4de22910fec;hb=2f7982367e8382e05c862de7afc71075ded5f606;hp=758a702d78937d9abbe48b03955a827ec26cde3d;hpb=e47b69882ca7299041123c664dbcc8b552c5db99;p=pulseview.git diff --git a/pv/view/header.hpp b/pv/view/header.hpp index 758a702..f12d23c 100644 --- a/pv/view/header.hpp +++ b/pv/view/header.hpp @@ -74,12 +74,22 @@ private: std::shared_ptr get_mouse_over_item( const QPoint &pt); + /** + * 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); + private: void paintEvent(QPaintEvent *event); private: - void mouseMoveEvent(QMouseEvent *event); - void contextMenuEvent(QContextMenuEvent *event); void keyPressEvent(QKeyEvent *e);