X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fview.cpp;h=124048bda8f9c63c1b14a5e770977ab89e09e37c;hp=eeb8afd236529e442bac91d6f4eeae6b5a065f05;hb=e081bf3d864d5662716668d6b4adcb0871d11dae;hpb=574c568d184240cd87be1b57fc00d60a4eac7566 diff --git a/pv/view/view.cpp b/pv/view/view.cpp index eeb8afd2..124048bd 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -203,6 +203,11 @@ const Viewport* View::viewport() const return viewport_; } +const QSize View::header_size() const +{ + return header_->sizeHint(); +} + vector< shared_ptr > View::time_items() const { const vector> f(flags()); @@ -546,6 +551,12 @@ void View::restack_all_trace_tree_items() for (auto &o : sorted_owners) o->restack_items(); + // Re-assign background colors + bool next_bgcolour_state = 0; + + for (auto &o : sorted_owners) + next_bgcolour_state = o->reassign_bgcolour_states(next_bgcolour_state); + // Animate the items to their destination for (const auto &i : items) i->animate_to_layout_v_offset();