forked from qt-creator/qt-creator
Debugger: Sort settings in dump
It's a hash, it has random order. Change-Id: I6ae90b0d175a8a398f7a774deb25a8e5b5c46c62 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
365e747a11
commit
b207ef447d
@@ -683,21 +683,20 @@ SavedAction *DebuggerSettings::item(int code) const
|
||||
|
||||
QString DebuggerSettings::dump() const
|
||||
{
|
||||
QString out;
|
||||
QTextStream ts(&out);
|
||||
ts << "Debugger settings: ";
|
||||
QStringList settings;
|
||||
foreach (SavedAction *item, m_items) {
|
||||
QString key = item->settingsKey();
|
||||
if (!key.isEmpty()) {
|
||||
const QString current = item->value().toString();
|
||||
const QString default_ = item->defaultValue().toString();
|
||||
ts << '\n' << key << ": " << current
|
||||
<< " (default: " << default_ << ')';
|
||||
QString setting = key + ": " + current + " (default: " + default_ + ')';
|
||||
if (current != default_)
|
||||
ts << " ***";
|
||||
setting += " ***";
|
||||
settings << setting;
|
||||
}
|
||||
}
|
||||
return out;
|
||||
settings.sort();
|
||||
return "Debugger settings:\n" + settings.join('\n');
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user