X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Ftrace.hpp;h=bc97736c03de58f1ccc4d9d2e09571c110c6d909;hp=758b2e97c46e0142238b842e8b3d42c013fda747;hb=d9b55cc8ab01e83b392762ed1fa400fdafafb60b;hpb=1931b5f932cf068d073bc798f11dd21ede5389a2 diff --git a/pv/views/trace/trace.hpp b/pv/views/trace/trace.hpp index 758b2e9..bc97736 100644 --- a/pv/views/trace/trace.hpp +++ b/pv/views/trace/trace.hpp @@ -94,6 +94,7 @@ private: protected: Trace(shared_ptr channel); + ~Trace(); public: /** @@ -127,6 +128,14 @@ public: */ QRectF label_rect(const QRectF &rect) const; + /** + * Computes the outline rectangle of the viewport hit-box. + * @param rect the rectangle of the viewport area. + * @return Returns the rectangle of the hit-box. + * @remarks The default implementation returns an empty hit-box. + */ + virtual QRectF hit_box_rect(const ViewItemPaintParams &pp) const; + void set_current_segment(const int segment); int get_current_segment() const;