X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fview.hpp;h=42fa322cc50b7e47f42ee51e1145a60ecf97c19b;hb=519d0ccbe67d005a9c442795ce3b8255e78ca46d;hp=09f3c2ee020f25befb08f6c954434df11a7676f2;hpb=d9ea96280ab1128427143660ae375c30b19aa0cb;p=pulseview.git diff --git a/pv/view/view.hpp b/pv/view/view.hpp index 09f3c2ee..42fa322c 100644 --- a/pv/view/view.hpp +++ b/pv/view/view.hpp @@ -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