Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
5a69dc57
Commit
5a69dc57
authored
Feb 01, 2022
by
Tobias Leupold
Browse files
Nicer layout for the "Autosave" group box
parent
067b8767
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/configuredialog/configurecomposerpage.cpp
View file @
5a69dc57
...
...
@@ -434,9 +434,9 @@ ComposerPageGeneralTab::ComposerPageGeneralTab(QWidget *parent)
groupBox
->
setLayout
(
groupGridLayout
);
layout
->
addWidget
(
groupBox
);
// "Autosave" group
groupBox
=
new
QGroupBox
(
i18nc
(
"@title:group"
,
"Autosave"
));
groupGridLayout
=
new
QGridLayout
();
row
=
0
;
groupHBoxLayout
=
new
QHBoxLayout
(
groupBox
);
// "Autosave interval" spinbox
mAutoSave
=
new
KPluralHandlingSpinBox
(
this
);
...
...
@@ -457,11 +457,9 @@ ComposerPageGeneralTab::ComposerPageGeneralTab(QWidget *parent)
connect
(
mAutoSave
,
&
QSpinBox
::
valueChanged
,
this
,
&
ConfigModuleTab
::
slotEmitChanged
);
groupGridLayout
->
addWidget
(
label
,
row
,
0
);
groupGridLayout
->
addWidget
(
mAutoSave
,
row
,
1
);
row
++
;
groupGridLayout
->
setRowStretch
(
row
,
1
);
groupBox
->
setLayout
(
groupGridLayout
);
groupHBoxLayout
->
addWidget
(
label
);
groupHBoxLayout
->
addWidget
(
mAutoSave
);
groupHBoxLayout
->
addStretch
();
layout
->
addWidget
(
groupBox
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment