]> sigrok.org Git - pulseview.git/commit
View: Improve 2a9fcd621 by using settings_restored_
authorSoeren Apel <redacted>
Fri, 9 Jun 2017 20:44:38 +0000 (22:44 +0200)
committerSoeren Apel <redacted>
Fri, 9 Jun 2017 20:44:38 +0000 (22:44 +0200)
commitb760e6e0527fd96608aeeff345b3a7c9cead9511
treedf66e92da59268ba00d2fc1ac999e3e835bf7011
parentc031de4b8b8a62bfec13de3fd91c0031eb222a04
View: Improve 2a9fcd621 by using settings_restored_

The timer is no longer needed as the introduction of
settings_restored_ allows us to determine whether we
should resize the trace label header to its proper
width when the show event is received.
This is because the show event is received only after
all widget resizing took place. This means that the
header pane sizes will be reliable at this point,
making this solution much cleaner than relying on
a timer repeatedly calling expand_header_to_fit().
pv/view/view.cpp
pv/view/view.hpp