X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Frowitem.cpp;h=2e693dd97ade70706e18bd90e2156b34787f9766;hp=597c4a138ec53fa4ecde9d924d4307be529abb4c;hb=5a6a4ce3e32a250cd586f4755573ed3bed530d7b;hpb=3eb29afdb641606c2e2e059289d8cc103d027a25 diff --git a/pv/view/rowitem.cpp b/pv/view/rowitem.cpp index 597c4a13..2e693dd9 100644 --- a/pv/view/rowitem.cpp +++ b/pv/view/rowitem.cpp @@ -61,7 +61,7 @@ void RowItem::set_visual_v_offset(int v_offset) visual_v_offset_ = v_offset; if (owner_) - owner_->appearance_changed(true, true); + owner_->row_item_appearance_changed(true, true); } void RowItem::force_to_v_offset(int v_offset) @@ -115,27 +115,15 @@ int RowItem::get_visual_y() const return visual_v_offset_ + owner_->owner_visual_v_offset(); } -QPoint RowItem::point() const +void RowItem::drag_by(const QPoint &delta) { - return QPoint(0, visual_v_offset()); + force_to_v_offset(drag_point_.y() + delta.y() - + owner_->owner_visual_v_offset()); } -void RowItem::paint_back(QPainter &p, const RowItemPaintParams &pp) +QPoint RowItem::point(const QRect &rect) const { - (void)p; - (void)pp; -} - -void RowItem::paint_mid(QPainter &p, const RowItemPaintParams &pp) -{ - (void)p; - (void)pp; -} - -void RowItem::paint_fore(QPainter &p, const RowItemPaintParams &pp) -{ - (void)p; - (void)pp; + return QPoint(rect.right(), get_visual_y()); } void RowItem::hover_point_changed()