RowItem: Added owner accessor function
authorJoel Holdsworth <joel@airwebreathe.org.uk>
Sat, 4 Oct 2014 09:25:25 +0000 (10:25 +0100)
committerJoel Holdsworth <joel@airwebreathe.org.uk>
Wed, 19 Nov 2014 10:23:01 +0000 (10:23 +0000)
pv/view/rowitem.cpp
pv/view/rowitem.h

index 38a6d43703883697c8ce838238ec1ab4377a334f..c78f9eef2cba0af4f22b4d9dca555801c98f7fc4 100644 (file)
@@ -43,6 +43,11 @@ void RowItem::set_v_offset(int v_offset)
        _v_offset = v_offset;
 }
 
        _v_offset = v_offset;
 }
 
+RowItemOwner* RowItem::owner() const
+{
+       return _owner;
+}
+
 void RowItem::set_owner(RowItemOwner *owner)
 {
        assert((_owner && !owner) || (!_owner && owner));
 void RowItem::set_owner(RowItemOwner *owner)
 {
        assert((_owner && !owner) || (!_owner && owner));
index 130904a2251e0d6da130a26fd7e11e2447496bfb..fb09edaa3cc76b52e00f3bca94c613efc7de8fbe 100644 (file)
@@ -51,6 +51,11 @@ public:
         */
        void set_v_offset(int v_offset);
 
         */
        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.
        /**
         * Sets the owner this trace in the view trace hierachy.
         * @param The new owner of the trace.