X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Frowitemowner.cpp;h=a8bdadfa21079a7da1bb44e3a6d01711bc62f558;hb=7ff0145fbf19de010232ea5edadea5df6c28ed8e;hp=0fa230ab4e3fb47a609c105cb1de0dc91ad4d277;hpb=a5d93c27b5bd6b95000e29c6cddac56ab254b289;p=pulseview.git diff --git a/pv/view/rowitemowner.cpp b/pv/view/rowitemowner.cpp index 0fa230a..a8bdadf 100644 --- a/pv/view/rowitemowner.cpp +++ b/pv/view/rowitemowner.cpp @@ -57,6 +57,8 @@ void RowItemOwner::add_child_item(std::shared_ptr item) assert(!item->owner()); item->set_owner(this); _items.push_back(item); + + extents_changed(true, true); } void RowItemOwner::remove_child_item(std::shared_ptr item) @@ -66,6 +68,8 @@ void RowItemOwner::remove_child_item(std::shared_ptr item) auto iter = std::find(_items.begin(), _items.end(), item); assert(iter != _items.end()); _items.erase(iter); + + extents_changed(true, true); } RowItemOwner::iterator RowItemOwner::begin() @@ -96,7 +100,7 @@ pair RowItemOwner::v_extents() const if (!r->enabled()) continue; - const int child_offset = r->v_offset(); + const int child_offset = r->layout_v_offset(); const pair child_extents = r->v_extents(); extents.first = min(child_extents.first + child_offset, extents.first); @@ -107,5 +111,9 @@ pair RowItemOwner::v_extents() const return extents; } +void RowItemOwner::restack_items() +{ +} + } // view } // pv