diff options
author | Orgad Shaneh <[email protected]> | 2017-07-14 00:17:35 +0300 |
---|---|---|
committer | Orgad Shaneh <[email protected]> | 2017-07-14 06:18:38 +0000 |
commit | b207ef447dff8ed4109c0fd40381e51d17083851 (patch) | |
tree | ab1b5192fe90e4fcd41c90656de6abdc15d8d72f /src/plugins/debugger/debuggeractions.cpp | |
parent | 365e747a1178d1f850a106a6c02d3c9ec2839161 (diff) |
Debugger: Sort settings in dump
It's a hash, it has random order.
Change-Id: I6ae90b0d175a8a398f7a774deb25a8e5b5c46c62
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggeractions.cpp')
-rw-r--r-- | src/plugins/debugger/debuggeractions.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/plugins/debugger/debuggeractions.cpp b/src/plugins/debugger/debuggeractions.cpp index f56765d155d..e8653737999 100644 --- a/src/plugins/debugger/debuggeractions.cpp +++ b/src/plugins/debugger/debuggeractions.cpp @@ -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 |