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
31603430
Commit
31603430
authored
Jul 21, 2022
by
Ingo Klöcker
Browse files
Use flat group boxes for grouping the two lists of keys
GnuPG-bug-id: 6095
parent
efc64b65
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dialogs/editgroupdialog.cpp
View file @
31603430
...
...
@@ -26,6 +26,7 @@
#include
<KStandardGuiItem>
#include
<QDialogButtonBox>
#include
<QGroupBox>
#include
<QHBoxLayout>
#include
<QItemSelectionModel>
#include
<QLabel>
...
...
@@ -85,8 +86,9 @@ public:
auto
centerLayout
=
new
QVBoxLayout
;
auto
availableKeysLayout
=
new
QVBoxLayout
;
availableKeysLayout
->
addWidget
(
new
QLabel
(
i18n
(
"Available keys:"
),
q
));
auto
availableKeysGroupBox
=
new
QGroupBox
{
i18nc
(
"@title"
,
"Available Keys"
),
q
};
availableKeysGroupBox
->
setFlat
(
true
);
auto
availableKeysLayout
=
new
QVBoxLayout
{
availableKeysGroupBox
};
{
auto
hbox
=
new
QHBoxLayout
;
...
...
@@ -115,7 +117,7 @@ public:
}
availableKeysLayout
->
addWidget
(
ui
.
availableKeysList
,
/*stretch=*/
1
);
centerLayout
->
add
Layou
t
(
availableKeys
Layout
,
/*stretch=*/
1
);
centerLayout
->
add
Widge
t
(
availableKeys
GroupBox
,
/*stretch=*/
1
);
auto
buttonsLayout
=
new
QHBoxLayout
;
buttonsLayout
->
addStretch
(
1
);
...
...
@@ -138,8 +140,9 @@ public:
centerLayout
->
addLayout
(
buttonsLayout
);
auto
groupKeysLayout
=
new
QVBoxLayout
;
groupKeysLayout
->
addWidget
(
new
QLabel
(
i18n
(
"Group keys:"
),
q
));
auto
groupKeysGroupBox
=
new
QGroupBox
{
i18nc
(
"@title"
,
"Group Keys"
),
q
};
groupKeysGroupBox
->
setFlat
(
true
);
auto
groupKeysLayout
=
new
QVBoxLayout
{
groupKeysGroupBox
};
{
auto
hbox
=
new
QHBoxLayout
;
...
...
@@ -164,7 +167,7 @@ public:
ui
.
groupKeysList
->
setHierarchicalView
(
false
);
groupKeysLayout
->
addWidget
(
ui
.
groupKeysList
,
/*stretch=*/
1
);
centerLayout
->
add
Layou
t
(
groupKeys
Layout
,
/*stretch=*/
1
);
centerLayout
->
add
Widge
t
(
groupKeys
GroupBox
,
/*stretch=*/
1
);
mainLayout
->
addLayout
(
centerLayout
);
...
...
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