From: Joel Holdsworth Date: Sun, 21 Dec 2014 12:55:11 +0000 (+0000) Subject: MarginWidget: Added pure-virtual get_mouse_over_item X-Git-Tag: pulseview-0.3.0~313 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=04b623e04f224748248447d8b3ced2df050a3375;p=pulseview.git MarginWidget: Added pure-virtual get_mouse_over_item --- 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.