]> sigrok.org Git - pulseview.git/commit
DecodeTrace: Resize trace when hiding/deleting a stacked PD
authorSoeren Apel <redacted>
Fri, 14 Jul 2017 16:24:32 +0000 (18:24 +0200)
committerSoeren Apel <redacted>
Fri, 14 Jul 2017 16:24:32 +0000 (18:24 +0200)
commitded43869b4d6169b7f269af0623ef0a682e5b910
tree30761e226e35716fcb4f74becb7c878b3e5159b3
parent6d2802aa2f53bcfc3a9a56ee65be5b88750b6cdd
DecodeTrace: Resize trace when hiding/deleting a stacked PD

The trace height depends on DecodeTrace::max_visible_rows_,
which needs to be updated when a stacked PD is hidden or
deleted. In order to do this, we reset max_visible_rows_ to
0 and then request a repaint.
pv/views/trace/decodetrace.cpp