X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftimemarker.cpp;h=b5662e4b6ba32e3ec6b90945f11799cf68cc59ce;hp=8c136a18189285e3a965af58e49ad0642f002b87;hb=cbf0f87e496c9d9157591c94dc445aaa960fe79d;hpb=ab6d2eabbab741cd9233cf731f22faaae621fc8a diff --git a/pv/view/timemarker.cpp b/pv/view/timemarker.cpp index 8c136a18..b5662e4b 100644 --- a/pv/view/timemarker.cpp +++ b/pv/view/timemarker.cpp @@ -95,11 +95,11 @@ QRectF TimeMarker::label_rect(const QRectF &rect) const return QRectF(QPointF(x - label_size.width() / 2, top), label_size); } -QRectF TimeMarker::hit_box_rect(const QRectF &rect) const +QRectF TimeMarker::hit_box_rect(const ViewItemPaintParams &pp) const { const float x = get_x(); const float h = QFontMetrics(QApplication::font()).height(); - return QRectF(x - h / 2.0f, rect.top(), h, rect.height()); + return QRectF(x - h / 2.0f, pp.top(), h, pp.height()); } void TimeMarker::paint_label(QPainter &p, const QRect &rect, bool hover)