aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggeractions.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2014-05-16 00:18:17 +0200
committerhjk <[email protected]>2014-05-16 17:50:18 +0200
commit40052046fdb2d5b5db4a6f2cd1c8ee36f2703f14 (patch)
tree1b331afbefe256bd7942be930b51a017ad4f304c /src/plugins/debugger/debuggeractions.cpp
parent382730b130174ac926740a9a1958c3ab18f912d3 (diff)
Debugger: Rework display length limitation systems
There are two values now, one to limit an entry in the L&E view (default 100) and a hard upper limit (at 1 mio). If displayed values are elided, the true length is shown in addition. Change-Id: I180b70446c18e258c164e5af75b88d4c8b6c53f2 Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggeractions.cpp')
-rw-r--r--src/plugins/debugger/debuggeractions.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggeractions.cpp b/src/plugins/debugger/debuggeractions.cpp
index c36bfd0169b..4152d38d3cb 100644
--- a/src/plugins/debugger/debuggeractions.cpp
+++ b/src/plugins/debugger/debuggeractions.cpp
@@ -632,7 +632,17 @@ DebuggerSettings::DebuggerSettings()
insertItem(MaximalStackDepth, item);
item = new SavedAction(this);
+ item->setSettingsKey(debugModeGroup, QLatin1String("DisplayStringLimit"));
+ item->setToolTip(tr("The maximal length of string entries in the "
+ "Locals and Expressions pane. Longer than that are cut off "
+ "and displayed with an ellipsis attached."));
+ item->setDefaultValue(100);
+ insertItem(DisplayStringLimit, item);
+
+ item = new SavedAction(this);
item->setSettingsKey(debugModeGroup, QLatin1String("MaximalStringLength"));
+ item->setToolTip(tr("The maximal length for strings in separated windows. "
+ "Longer strings are cut off and displayed with an ellipsis attached."));
item->setDefaultValue(10000);
insertItem(MaximalStringLength, item);