From c13447b3916ffed6257fa806536a52bcb58f0315 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Mon, 15 Dec 2014 12:36:32 +0000 Subject: [PATCH] Header: Fixed trace labels spilling onto the canvas --- pv/view/header.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pv/view/header.cpp b/pv/view/header.cpp index 837d1916..780b1e3d 100644 --- a/pv/view/header.cpp +++ b/pv/view/header.cpp @@ -80,7 +80,7 @@ QSize Header::sizeHint() const shared_ptr Header::get_mouse_over_row_item(const QPoint &pt) { - const QRect r(BaselineOffset, 0, width() - BaselineOffset, height()); + const QRect r(0, 0, width() - BaselineOffset, height()); for (auto &i : view_) if (i->enabled() && i->label_rect(r).contains(pt)) return i; @@ -112,7 +112,7 @@ void Header::paintEvent(QPaintEvent*) // The trace labels are not drawn with the arrows exactly on the // left edge of the widget, because then the selection shadow // would be clipped away. - const QRect rect(BaselineOffset, 0, width() - BaselineOffset, height()); + const QRect rect(0, 0, width() - BaselineOffset, height()); vector< shared_ptr > row_items( view_.begin(), view_.end()); -- 2.30.2