}
Header::Header(View &parent) :
- MarginWidget(parent),
- dragging_(false)
+ MarginWidget(parent)
{
- setFocusPolicy(Qt::ClickFocus);
- setMouseTracking(true);
-
connect(&view_, SIGNAL(signals_moved()),
this, SLOT(on_signals_moved()));
}
shared_ptr<RowItem> 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;
// 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<RowItem> > row_items(
view_.begin(), view_.end());