]> sigrok.org Git - pulseview.git/blobdiff - pv/view/view.hpp
AnalogSignal: Implement vertical grid
[pulseview.git] / pv / view / view.hpp
index 09f3c2ee020f25befb08f6c954434df11a7676f2..42fa322cc50b7e47f42ee51e1145a60ecf97c19b 100644 (file)
@@ -267,10 +267,14 @@ private:
 
        void update_scroll();
 
+       void reset_scroll();
+
+       void set_scroll_default();
+
        void update_layout();
 
        /**
-        * Satisifies TraceTreeItem functionality.
+        * Satisfies TraceTreeItem functionality.
         * @param p the QPainter to paint into.
         * @param rect the rectangle of the header area.
         * @param hover true if the label is being hovered over by the mouse.
@@ -396,6 +400,9 @@ private:
 
        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