update();
}
-void Header::show_popup(const shared_ptr<RowItem> &item)
-{
- using pv::widgets::Popup;
-
- Popup *const p = item->create_popup(&view_);
- if (!p)
- return;
-
- const QPoint pt(width() - BaselineOffset, item->get_visual_y());
- p->set_position(mapToGlobal(pt), Popup::Right);
- p->show();
-}
-
void Header::paintEvent(QPaintEvent*)
{
// The trace labels are not drawn with the arrows exactly on the
// Do the drag
dragging_ = true;
- const int delta = event->pos().y() - mouse_down_point_.y();
+ const QPoint delta = event->pos() - mouse_down_point_;
for (std::shared_ptr<RowItem> r : view_)
if (r->dragging()) {
- r->force_to_v_offset(r->drag_point().y() + delta);
+ r->drag_by(delta);
// Ensure the trace is selected
r->select();