Make restack_items() available to all TraceTreeItemOwners
authorSoeren Apel <soeren@apelpie.net>
Fri, 14 Jul 2017 06:40:04 +0000 (08:40 +0200)
committerSoeren Apel <soeren@apelpie.net>
Fri, 14 Jul 2017 06:40:04 +0000 (08:40 +0200)
commit92fdf33184a29c139a532e954cdd573649ad522d
tree86a5a3e71b646c38d5965d2bc46f093e75eab5f7
parent53b652bdde928b42a116e60f5c07800d0bd0b873
Make restack_items() available to all TraceTreeItemOwners

Currently, TTIO:restack_items() is empty and only the
TraceGroup actually implements it. For this reason, decode
traces (and analog traces) are correctly pushing other traces
around when their size changes.
Top-level traces that are not part of a group however aren't
handled properly, simply overlapping when they grow.

This patch makes the code available to all TTIO-derived
classes, allowing all owners (including View itself) to
properly handle this event.
pv/views/trace/tracegroup.cpp
pv/views/trace/tracegroup.hpp
pv/views/trace/tracetreeitemowner.cpp