From: Joel Holdsworth Date: Sat, 4 Oct 2014 09:25:25 +0000 (+0100) Subject: RowItem: Added owner accessor function X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=commitdiff_plain;h=bd9a1f175057487cff3cb3cc62bc9595e19945be RowItem: Added owner accessor function --- diff --git a/pv/view/rowitem.cpp b/pv/view/rowitem.cpp index 38a6d43..c78f9ee 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 130904a..fb09eda 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.