X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fviewitem.hpp;h=77c8665e17522a3d08c3e07f631b866078f21ed6;hb=516b0c4163547a969da7686702c043e7e0335419;hp=5ce3bb608ec68156ba06c53b12409619e9772ec9;hpb=c04f5a29b805e2aa7afa06d80363bad1f5b705f6;p=pulseview.git diff --git a/pv/views/trace/viewitem.hpp b/pv/views/trace/viewitem.hpp index 5ce3bb60..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 @@ -167,6 +168,14 @@ public: virtual void delete_pressed(); + 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(); @@ -182,4 +191,4 @@ private: } // namespace views } // namespace pv -#endif // PULSEVIEW_PV_VIEWITEM_HPP +#endif // PULSEVIEW_PV_VIEWS_TRACE_VIEWITEM_HPP