X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fglobalsettings.hpp;h=b2b3626ed05febc0e7c7b51c9491a75aa826a496;hb=28ceff251c776bcf99eafae691e70a521af15957;hp=930bb5bbfcceee55f7fdea1cf9cab54831208901;hpb=1cc1c8dec120ed6d98071f939ea435d85ee853bf;p=pulseview.git diff --git a/pv/globalsettings.hpp b/pv/globalsettings.hpp index 930bb5b..b2b3626 100644 --- a/pv/globalsettings.hpp +++ b/pv/globalsettings.hpp @@ -39,6 +39,7 @@ class GlobalSettings : public QSettings public: static const QString Key_View_AlwaysZoomToFit; + static const QString Key_View_ZoomToFitAfterAcq; static const QString Key_View_ColouredBG; static const QString Key_View_StickyScrolling; static const QString Key_View_ShowSamplingPoints; @@ -48,6 +49,8 @@ public: public: GlobalSettings(); + void set_defaults_where_needed(); + static void register_change_handler(const QString key, function cb);