X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fviewitem.hpp;h=423e75d2f313e38ec7cd156831c1119edaea47f8;hb=440bdf504a05efe589e8954ad28be62ba2c2d325;hp=53ed2a60cbe891c578ba30c65eb50adb5da34c48;hpb=119c5c232ef47e92ef6a5cc9f8b7c4c31dc2f387;p=pulseview.git diff --git a/pv/views/trace/viewitem.hpp b/pv/views/trace/viewitem.hpp index 53ed2a60..423e75d2 100644 --- a/pv/views/trace/viewitem.hpp +++ b/pv/views/trace/viewitem.hpp @@ -22,6 +22,7 @@ #include +#include #include #include @@ -53,7 +54,6 @@ public: public: ViewItem(); -public: /** * Returns true if the item is visible and enabled. */ @@ -151,7 +151,6 @@ public: */ virtual void paint_fore(QPainter &p, ViewItemPaintParams &pp); -public: /** * Gets the text color. * @remarks This color is computed by comparing the lightness @@ -169,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();