X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fview%2Fview.cpp;h=3619ba0694d8f4bc48c5c8a97368e9f005192a9e;hb=ef8311a4296a2dc85c82b063de61efa4eb7a8404;hp=ca575bec2ebc0e0258e3ee08490e1f6b5e111b8d;hpb=b698553cd745bf4f50f73f513798bba6209a5d13;p=pulseview.git diff --git a/pv/view/view.cpp b/pv/view/view.cpp index ca575be..3619ba0 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -275,18 +275,6 @@ void View::update_scroll() areaSize.height()); } -void View::reset_signal_layout() -{ - int offset = SignalMargin + SignalHeight; - const vector< shared_ptr > sigs(_session.get_signals()); - BOOST_FOREACH(shared_ptr s, sigs) { - s->set_v_offset(offset); - offset += SignalHeight + 2 * SignalMargin; - } - - normalize_layout(); -} - bool View::eventFilter(QObject *object, QEvent *event) { const QEvent::Type type = event->type(); @@ -364,7 +352,15 @@ void View::v_scroll_value_changed(int value) void View::signals_changed() { - reset_signal_layout(); + int offset = SignalMargin + SignalHeight; + const vector< shared_ptr > sigs(_session.get_signals()); + BOOST_FOREACH(shared_ptr s, sigs) { + s->init_context_bar_actions(NULL); + s->set_v_offset(offset); + offset += SignalHeight + 2 * SignalMargin; + } + + normalize_layout(); } void View::data_updated()