X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fmarginwidget.hpp;h=b8bcdd77744f2e7676cdbb3a25d1eff9e321c852;hp=bd74801bf4d04a7f71e6a3875e2b8ed5acf652e9;hb=04b623e04f224748248447d8b3ced2df050a3375;hpb=3e124bee223688078d60f007cfa078a1dcbfbfb3 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.