From d8ad6aa275ce4ab7e0827aa342d75c6a2f5c3f5c Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Tue, 29 Jun 2010 12:37:02 +0200 Subject: [PATCH] debugger: make changes to default settings stand out in the log --- src/plugins/debugger/debuggeractions.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/plugins/debugger/debuggeractions.cpp b/src/plugins/debugger/debuggeractions.cpp index 266be5df5d6..10adf8d6455 100644 --- a/src/plugins/debugger/debuggeractions.cpp +++ b/src/plugins/debugger/debuggeractions.cpp @@ -155,9 +155,14 @@ QString DebuggerSettings::dump() const ts << "Debugger settings: "; foreach (SavedAction *item, m_items) { QString key = item->settingsKey(); - if (!key.isEmpty()) - ts << '\n' << key << ": " << item->value().toString() - << " (default: " << item->defaultValue().toString() << ")"; + if (!key.isEmpty()) { + const QString current = item->value().toString(); + const QString default_ = item->defaultValue().toString(); + ts << '\n' << key << ": " << current + << " (default: " << default_ << ")"; + if (current != default_) + ts << " ***"; + } } return out; } -- GitLab