]> sigrok.org Git - pulseview.git/blobdiff - pv/view/view.cpp
Header: Keep a shared_ptr of the clicked item
[pulseview.git] / pv / view / view.cpp
index 035b7803bb83b96d78101602474c8684115e22d1..615802239e2486d1a37d44705f0c98c98265ba80 100644 (file)
@@ -69,7 +69,6 @@ const int View::MaxScrollValue = INT_MAX / 2;
 
 const int View::SignalHeight = 30;
 const int View::SignalMargin = 10;
-const int View::SignalSnapGridSize = 10;
 
 const QColor View::CursorAreaColour(220, 231, 243);
 
@@ -522,6 +521,10 @@ void View::signals_changed()
 
        update_layout();
        normalize_layout();
+
+       // Update the child widgets
+       _header->signals_updated();
+       _viewport->signals_updated();
 }
 
 void View::data_updated()