From bd9a1f175057487cff3cb3cc62bc9595e19945be Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sat, 4 Oct 2014 10:25:25 +0100 Subject: [PATCH 1/1] RowItem: Added owner accessor function --- pv/view/rowitem.cpp | 5 +++++ pv/view/rowitem.h | 5 +++++ 2 files changed, 10 insertions(+) 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. -- 2.30.2