X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fglobalsettings.hpp;h=eb964fa2c677b802fe077e2da34de722328d6328;hp=930bb5bbfcceee55f7fdea1cf9cab54831208901;hb=e91fb166608133382baa1a90cc022bfa47d649de;hpb=1cc1c8dec120ed6d98071f939ea435d85ee853bf diff --git a/pv/globalsettings.hpp b/pv/globalsettings.hpp index 930bb5bb..eb964fa2 100644 --- a/pv/globalsettings.hpp +++ b/pv/globalsettings.hpp @@ -38,7 +38,8 @@ class GlobalSettings : public QSettings Q_OBJECT public: - static const QString Key_View_AlwaysZoomToFit; + static const QString Key_View_ZoomToFitDuringAcq; + 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);