aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index c1060aa..ee22753 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -18,6 +18,12 @@ int main(int argc, char **argv)
{
// create and load configuration
std::shared_ptr<Configuration> config = std::make_shared<Configuration>();
+#ifdef QT_DEBUG
+ QObject::connect(config.get(), &Configuration::settingChanged, [](const std::string &path, const QString &value) {
+ qDebug("!!! setting changed %s=[%s]", path.c_str(), qUtf8Printable(value));
+ });
+#endif
+
if(!config->parse(argc, argv)) {
qWarning("Error parsing command line, check --help for usage.");
return -1;