From: Soeren Apel Date: Fri, 30 Mar 2018 17:08:58 +0000 (+0200) Subject: GlobalSettings: Announce settings changes to allow logging X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=7ba25e4f0953839d9dd9623ef8d80c57db75364b GlobalSettings: Announce settings changes to allow logging --- diff --git a/pv/globalsettings.cpp b/pv/globalsettings.cpp index 0aaffdd9..8be4265b 100644 --- a/pv/globalsettings.cpp +++ b/pv/globalsettings.cpp @@ -20,6 +20,7 @@ #include "globalsettings.hpp" #include +#include #include #include @@ -106,6 +107,8 @@ void GlobalSettings::setValue(const QString &key, const QVariant &value) QSettings::setValue(key, value); + qDebug() << "Setting" << key << "changed to" << value; + // Call all registered callbacks for (GlobalSettingsInterface *cb : callbacks_) cb->on_setting_changed(key, value);