X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fruler.hpp;h=6559f6f09cd770d2c0060a2eb1273ea4112a6d39;hb=2f7982367e8382e05c862de7afc71075ded5f606;hp=f29075c7868bc052b270135c31667f7b0aa72418;hpb=e47b69882ca7299041123c664dbcc8b552c5db99;p=pulseview.git diff --git a/pv/view/ruler.hpp b/pv/view/ruler.hpp index f29075c..6559f6f 100644 --- a/pv/view/ruler.hpp +++ b/pv/view/ruler.hpp @@ -73,11 +73,21 @@ private: std::shared_ptr get_mouse_over_item( const QPoint &pt); + /** + * Returns true if the selection of time 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); - void mouseMoveEvent(QMouseEvent *e); - void mouseDoubleClickEvent(QMouseEvent *e); private: