From 04b623e04f224748248447d8b3ced2df050a3375 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sun, 21 Dec 2014 12:55:11 +0000 Subject: [PATCH] MarginWidget: Added pure-virtual get_mouse_over_item --- pv/view/marginwidget.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pv/view/marginwidget.hpp b/pv/view/marginwidget.hpp index bd74801b..b8bcdd77 100644 --- a/pv/view/marginwidget.hpp +++ b/pv/view/marginwidget.hpp @@ -52,6 +52,15 @@ protected: */ virtual std::vector< std::shared_ptr > items() = 0; + /** + * Gets the first view item which has a label that contains @c pt . + * @param pt the point to search with. + * @return the view item that has been found, or and empty + * @c shared_ptr if no item was found. + */ + virtual std::shared_ptr get_mouse_over_item( + const QPoint &pt) = 0; + /** * Shows the popup of a the specified @c ViewItem . * @param item The item to show the popup for. -- 2.30.2