Adds option to make editor not scroll on debugging

Added an option to change the behavior of the debuggercore so that
the current editor isn't always centered on the current line, to stop
unnecessary jumping of the code.

Change-Id: I9406df518bb1b977e39a0265ee7fd6fae2069ed9
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Wiebe Cazemier
2014-05-02 12:08:44 +02:00
committed by hjk
parent 97ece795e0
commit b63d9c6df0
8 changed files with 32 additions and 7 deletions

View File

@@ -176,6 +176,13 @@ DebuggerSettings::DebuggerSettings()
item->setDefaultValue(false);
insertItem(UseAlternatingRowColors, item);
item = new SavedAction(this);
item->setText(tr("Keep Editor Stationary When Stepping"));
item->setSettingsKey(debugModeGroup, QLatin1String("StationaryEditorWhileStepping"));
item->setCheckable(true);
item->setDefaultValue(false);
insertItem(StationaryEditorWhileStepping, item);
item = new SavedAction(this);
item->setText(tr("Debugger Font Size Follows Main Editor"));
item->setSettingsKey(debugModeGroup, QLatin1String("FontSizeFollowsEditor"));