aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/commonoptionspage.cpp
diff options
context:
space:
mode:
authorWiebe Cazemier <wiebe@halfgaar.net>2014-05-02 12:08:44 +0200
committerhjk <hjk121@nokiamail.com>2014-05-08 15:20:48 +0200
commitb63d9c6df0e6638c2b40a7351026aed6aab2b953 (patch)
tree3dcfcec0f5e00d5f9596e14890d882a506522bff /src/plugins/debugger/commonoptionspage.cpp
parent97ece795e092cf2b26f7ec84bdd5135fa70a8876 (diff)
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>
Diffstat (limited to 'src/plugins/debugger/commonoptionspage.cpp')
-rw-r--r--src/plugins/debugger/commonoptionspage.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/plugins/debugger/commonoptionspage.cpp b/src/plugins/debugger/commonoptionspage.cpp
index 93e7586bf2..ffe72dc6ac 100644
--- a/src/plugins/debugger/commonoptionspage.cpp
+++ b/src/plugins/debugger/commonoptionspage.cpp
@@ -98,6 +98,13 @@ CommonOptionsPageWidget::CommonOptionsPageWidget
checkBoxWarnOnReleaseBuilds->setToolTip(tr("Shows a warning when starting the debugger "
"on a binary with insufficient debug information."));
+ checkBoxKeepEditorStationaryWhileStepping = new QCheckBox(behaviorBox);
+ checkBoxKeepEditorStationaryWhileStepping->setText(tr("Keep editor stationary when stepping"));
+ checkBoxKeepEditorStationaryWhileStepping->setToolTip(tr("Scrolls the editor only when it is necessary "
+ "to keep the current line in view, "
+ "instead of keeping the next statement centered at "
+ "all times."));
+
labelMaximalStackDepth = new QLabel(tr("Maximum stack depth:"), behaviorBox);
spinBoxMaximalStackDepth = new QSpinBox(behaviorBox);
@@ -139,7 +146,8 @@ CommonOptionsPageWidget::CommonOptionsPageWidget
gridLayout->addWidget(checkBoxListSourceFiles, 1, 1, 1, 1);
gridLayout->addWidget(checkBoxSwitchModeOnExit, 2, 1, 1, 1);
gridLayout->addWidget(checkBoxShowQmlObjectTree, 3, 1, 1, 1);
- gridLayout->addWidget(checkBoxRegisterForPostMortem, 4, 1, 1, 1);
+ gridLayout->addWidget(checkBoxKeepEditorStationaryWhileStepping, 4, 1, 1, 1);
+ gridLayout->addWidget(checkBoxRegisterForPostMortem, 5, 1, 1, 1);
gridLayout->addLayout(horizontalLayout2, 6, 1, 1, 2);
QVBoxLayout *verticalLayout = new QVBoxLayout(this);
@@ -168,6 +176,8 @@ CommonOptionsPageWidget::CommonOptionsPageWidget
checkBoxShowQmlObjectTree);
m_group->insert(dc->action(WarnOnReleaseBuilds),
checkBoxWarnOnReleaseBuilds);
+ m_group->insert(dc->action(StationaryEditorWhileStepping),
+ checkBoxKeepEditorStationaryWhileStepping);
m_group->insert(dc->action(FontSizeFollowsEditor),
checkBoxFontSizeFollowsEditor);
m_group->insert(dc->action(AutoDerefPointers), 0);