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
Kleopatra
Commits
dd4e553d
Commit
dd4e553d
authored
Jul 20, 2022
by
Ingo Klöcker
Browse files
Prevent scroll area embedding config page from receiving focus
GnuPG-bug-id: 6095
parent
6121172d
Pipeline
#207038
passed with stage
in 3 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/conf/groupsconfigdialog.cpp
View file @
dd4e553d
...
...
@@ -24,6 +24,7 @@
#include
<QDialogButtonBox>
#include
<QPushButton>
#include
<QScrollArea>
class
GroupsConfigDialog
::
Private
{
...
...
@@ -70,7 +71,11 @@ GroupsConfigDialog::GroupsConfigDialog(QWidget *parent)
setWindowTitle
(
i18nc
(
"@title:window"
,
"Configure Groups"
));
setFaceType
(
KPageDialog
::
Plain
);
addPage
(
d
->
configPage
,
i18n
(
"Groups"
),
/*pixmapName=*/
QString
(),
/*header=*/
QString
(),
/*manage=*/
false
);
const
auto
*
const
item
=
addPage
(
d
->
configPage
,
i18n
(
"Groups"
),
/*pixmapName=*/
QString
(),
/*header=*/
QString
(),
/*manage=*/
false
);
// prevent scroll area embedding the config page from receiving focus
for
(
const
auto
scrollAreas
=
item
->
widget
()
->
findChildren
<
QScrollArea
*>
();
auto
sa
:
scrollAreas
)
{
sa
->
setFocusPolicy
(
Qt
::
NoFocus
);
}
// there are no defaults to restore
buttonBox
()
->
removeButton
(
buttonBox
()
->
button
(
QDialogButtonBox
::
RestoreDefaults
));
...
...
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