From: Joel Holdsworth Date: Sat, 4 Oct 2014 09:25:25 +0000 (+0100) Subject: RowItem: Added owner accessor function X-Git-Tag: pulseview-0.3.0~477 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bd9a1f175057487cff3cb3cc62bc9595e19945be;p=pulseview.git RowItem: Added owner accessor function --- diff --git a/pv/view/rowitem.cpp b/pv/view/rowitem.cpp index 38a6d437..c78f9eef 100644 --- a/pv/view/rowitem.cpp +++ b/pv/view/rowitem.cpp @@ -43,6 +43,11 @@ void RowItem::set_v_offset(int v_offset) _v_offset = v_offset; } +RowItemOwner* RowItem::owner() const +{ + return _owner; +} + void RowItem::set_owner(RowItemOwner *owner) { assert((_owner && !owner) || (!_owner && owner)); diff --git a/pv/view/rowitem.h b/pv/view/rowitem.h index 130904a2..fb09edaa 100644 --- a/pv/view/rowitem.h +++ b/pv/view/rowitem.h @@ -51,6 +51,11 @@ public: */ void set_v_offset(int v_offset); + /** + * Gets the owner this trace in the view trace hierachy. + */ + pv::view::RowItemOwner* owner() const; + /** * Sets the owner this trace in the view trace hierachy. * @param The new owner of the trace.