X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Frowitem.cpp;h=861d4adf05d28763640c12a2dac1a27d4f308f4c;hp=293460233a8fd96ff81888664d447cd8feb4418f;hb=c3bb03ffcd63e5bb4a98e46313a71de96a544081;hpb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5 diff --git a/pv/view/rowitem.cpp b/pv/view/rowitem.cpp index 29346023..861d4adf 100644 --- a/pv/view/rowitem.cpp +++ b/pv/view/rowitem.cpp @@ -20,9 +20,9 @@ #include -#include "view.h" +#include "view.hpp" -#include "rowitem.h" +#include "rowitem.hpp" namespace pv { namespace view { @@ -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,30 +115,9 @@ int RowItem::get_visual_y() const return visual_v_offset_ + owner_->owner_visual_v_offset(); } -QPoint RowItem::point() const +QPoint RowItem::point(const QRect &rect) const { - return QPoint(0, visual_v_offset()); -} - -void RowItem::paint_back(QPainter &p, int left, int right) -{ - (void)p; - (void)left; - (void)right; -} - -void RowItem::paint_mid(QPainter &p, int left, int right) -{ - (void)p; - (void)left; - (void)right; -} - -void RowItem::paint_fore(QPainter &p, int left, int right) -{ - (void)p; - (void)left; - (void)right; + return QPoint(rect.right(), get_visual_y()); } void RowItem::hover_point_changed()