Debugger: Re-organize General settings into more logical groups

Task-number: QTCREATORBUG-31929
Change-Id: I17f5203e6e028cfff6e9e79c7917900b693c2970
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2024-10-30 16:29:25 +01:00
parent a105e5cbf2
commit 79abec8d36

View File

@@ -142,31 +142,48 @@ CommonSettings::CommonSettings()
setLayouter([this] { setLayouter([this] {
using namespace Layouting; using namespace Layouting;
Column col1 { Group behavior {
useAlternatingRowColors, title(Tr::tr("Behavior")),
useAnnotationsInMainEditor, Column {
useToolTipsInMainEditor, registerForPostMortem,
closeSourceBuffersOnExit,
closeMemoryBuffersOnExit,
raiseOnInterrupt, raiseOnInterrupt,
breakpointsFullPathByDefault,
warnOnReleaseBuilds, warnOnReleaseBuilds,
Row { maximalStackDepth, st } breakpointsFullPathByDefault,
forceLoggingToConsole,
Row { maximalStackDepth, st },
st
}
}; };
Column col2 { Group userInterface {
title(Tr::tr("User Interface")),
Column {
useAnnotationsInMainEditor,
useToolTipsInMainEditor,
useAlternatingRowColors,
fontSizeFollowsEditor, fontSizeFollowsEditor,
switchModeOnExit,
showQmlObjectTree,
stationaryEditorWhileStepping, stationaryEditorWhileStepping,
showQmlObjectTree,
showUnsupportedBreakpointWarning, showUnsupportedBreakpointWarning,
forceLoggingToConsole, }
registerForPostMortem, };
st
Group afterLife {
title(Tr::tr("When Debugging Stops")),
Column {
closeSourceBuffersOnExit,
closeMemoryBuffersOnExit,
switchModeOnExit,
}
}; };
return Column { return Column {
Group { title(Tr::tr("Behavior")), Row { col1, col2, st } }, Grid {
Column { behavior, afterLife },
Column { userInterface, st },
columnStretch(0, 1),
columnStretch(1, 1)
},
sourcePathMap, sourcePathMap,
st st
}; };