X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fheader.cpp;h=780b1e3db5f9894c39e845fd6a549e855976038a;hb=650e2e5fd465119615b9b969d15cc9fb11f18aa4;hp=4da188af70d916564d43b59264e490f81a67bbcb;hpb=b3f44329f5846bfb800ee53c15c65b2395d3ba0c;p=pulseview.git diff --git a/pv/view/header.cpp b/pv/view/header.cpp index 4da188af..780b1e3d 100644 --- a/pv/view/header.cpp +++ b/pv/view/header.cpp @@ -60,8 +60,7 @@ static bool item_selected(shared_ptr r) } Header::Header(View &parent) : - MarginWidget(parent), - dragging_(false) + MarginWidget(parent) { setFocusPolicy(Qt::ClickFocus); setMouseTracking(true); @@ -81,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; @@ -113,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());