X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fviewitem.hpp;h=77c8665e17522a3d08c3e07f631b866078f21ed6;hp=c445f609063df6386579d6fa6cebf74fd4a11c19;hb=HEAD;hpb=af33d4cbacc745f4473f5c0f4fa1f9ebb8d84d0a diff --git a/pv/views/trace/viewitem.hpp b/pv/views/trace/viewitem.hpp index c445f609..77c8665e 100644 --- a/pv/views/trace/viewitem.hpp +++ b/pv/views/trace/viewitem.hpp @@ -17,11 +17,12 @@ * along with this program; if not, see . */ -#ifndef PULSEVIEW_PV_VIEWITEM_HPP -#define PULSEVIEW_PV_VIEWITEM_HPP +#ifndef PULSEVIEW_PV_VIEWS_TRACE_VIEWITEM_HPP +#define PULSEVIEW_PV_VIEWS_TRACE_VIEWITEM_HPP #include +#include #include #include @@ -169,6 +170,12 @@ public: virtual void hover_point_changed(const QPoint &hp); + /** + * Handles left mouse button press events. + * @param event the mouse event that triggered this handler. + */ + virtual void mouse_left_press_event(const QMouseEvent* event); + protected: static QPen highlight_pen(); @@ -184,4 +191,4 @@ private: } // namespace views } // namespace pv -#endif // PULSEVIEW_PV_VIEWITEM_HPP +#endif // PULSEVIEW_PV_VIEWS_TRACE_VIEWITEM_HPP