]> sigrok.org Git - pulseview.git/blobdiff - pv/view/view.hpp
View: Provide a clear setup path for the initial v_offset value
[pulseview.git] / pv / view / view.hpp
index 25d1dbf78b1b8afb2134d0ceb3aec2f7759b1ea2..42fa322cc50b7e47f42ee51e1145a60ecf97c19b 100644 (file)
@@ -267,6 +267,10 @@ private:
 
        void update_scroll();
 
 
        void update_scroll();
 
+       void reset_scroll();
+
+       void set_scroll_default();
+
        void update_layout();
 
        /**
        void update_layout();
 
        /**
@@ -396,6 +400,9 @@ private:
 
        unsigned int sticky_events_;
        QTimer lazy_event_handler_;
 
        unsigned int sticky_events_;
        QTimer lazy_event_handler_;
+
+       // This is true when the defaults couldn't be set due to insufficient info
+       bool scroll_needs_defaults;
 };
 
 } // namespace view
 };
 
 } // namespace view