X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fview.cpp;h=d58e074a3ef72ec77bc3e75c3487dac627cbb15d;hp=c53c02e3abd44f8242dc7bd1ceaf3d43a38cf02b;hb=98cfe4e8dadad2cf710eb46fd5c85d9d0520a875;hpb=70a4886c67e381302d904d1d867abb9d8eac7053 diff --git a/pv/view/view.cpp b/pv/view/view.cpp index c53c02e3..d58e074a 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -121,11 +121,6 @@ View::View(Session &session, QWidget *parent) : connect(&session_, SIGNAL(frame_ended()), this, SLOT(data_updated())); - connect(cursors_->first().get(), SIGNAL(time_changed()), - this, SLOT(marker_time_changed())); - connect(cursors_->second().get(), SIGNAL(time_changed()), - this, SLOT(marker_time_changed())); - connect(header_, SIGNAL(signals_moved()), this, SLOT(on_signals_moved())); @@ -615,6 +610,14 @@ void View::row_item_appearance_changed(bool label, bool content) viewport_->update(); } +void View::time_item_appearance_changed(bool label, bool content) +{ + if (label) + cursorheader_->update(); + if (content) + viewport_->update(); +} + void View::extents_changed(bool horz, bool vert) { sticky_events_ |= @@ -728,12 +731,6 @@ void View::data_updated() viewport_->update(); } -void View::marker_time_changed() -{ - cursorheader_->update(); - viewport_->update(); -} - void View::on_signals_moved() { update_scroll();