From: Soeren Apel Date: Sat, 13 Oct 2018 19:42:48 +0000 (+0200) Subject: Trace: Force trace replaint when a setting changes X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=39dce56b0e0b4daba503663e44ee6c86a754ddc2;p=pulseview.git Trace: Force trace replaint when a setting changes --- diff --git a/pv/views/trace/trace.cpp b/pv/views/trace/trace.cpp index 8511f750..bbd0115f 100644 --- a/pv/views/trace/trace.cpp +++ b/pv/views/trace/trace.cpp @@ -110,6 +110,10 @@ void Trace::on_setting_changed(const QString &key, const QVariant &value) { if (key == GlobalSettings::Key_View_ShowHoverMarker) show_hover_marker_ = value.toBool(); + + // Force a repaint since many options alter the way traces look + if (owner_) + owner_->row_item_appearance_changed(false, true); } void Trace::paint_label(QPainter &p, const QRect &rect, bool hover)