]> sigrok.org Git - pulseview.git/commitdiff
Trace: Force trace replaint when a setting changes
authorSoeren Apel <redacted>
Sat, 13 Oct 2018 19:42:48 +0000 (21:42 +0200)
committerSoeren Apel <redacted>
Sat, 13 Oct 2018 19:49:17 +0000 (21:49 +0200)
pv/views/trace/trace.cpp

index 8511f7507cdec68e759b9c32d5af33e8c958cccc..bbd0115fb65af00512508c7129d3e6399b12a3a2 100644 (file)
@@ -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)