debugger: make changes to default settings stand out in the log

This commit is contained in:
hjk
2010-06-29 12:37:02 +02:00
parent 5adefac634
commit d8ad6aa275

View File

@@ -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;
}