X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fview.cpp;h=7a444f7c47f68b1032e6a0b359366afb4272e50f;hp=c5465ff3c6ba19eef1cd68ba2082ba40d7f413c4;hb=69dd2b030f0bf289fe3132cf3c0f3725c578a916;hpb=2e2946fe1bbb043d1c0c8a824bc753db0920469d diff --git a/pv/view/view.cpp b/pv/view/view.cpp index c5465ff3..7a444f7c 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -79,6 +79,9 @@ View::View(SigSession &session, QWidget *parent) : this, SLOT(h_scroll_value_changed(int))); connect(verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(v_scroll_value_changed(int))); + + connect(&_session, SIGNAL(signals_changed()), + this, SLOT(signals_changed())); connect(&_session, SIGNAL(data_updated()), this, SLOT(data_updated())); @@ -307,6 +310,11 @@ void View::v_scroll_value_changed(int value) _viewport->update(); } +void View::signals_changed() +{ + reset_signal_layout(); +} + void View::data_updated() { // Get the new data length @@ -326,9 +334,6 @@ void View::data_updated() // Repaint the view _viewport->update(); - - /// @todo: Call this only once when the signals are first created. - reset_signal_layout(); } void View::marker_time_changed()