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
88414297
Commit
88414297
authored
Aug 11, 2022
by
Ingo Klöcker
Browse files
Set a more accessible name for the collapsible Advanced group box
GnuPG-bug-id: 6046
parent
0738ffa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dialogs/certifywidget.cpp
View file @
88414297
...
...
@@ -60,7 +60,8 @@ class AnimatedExpander: public QWidget
{
Q_OBJECT
public:
explicit
AnimatedExpander
(
const
QString
&
title
=
QString
(),
explicit
AnimatedExpander
(
const
QString
&
title
,
const
QString
&
accessibleTitle
=
{},
QWidget
*
parent
=
nullptr
);
void
setContentLayout
(
QLayout
*
contentLayout
);
...
...
@@ -73,13 +74,16 @@ private:
int
animationDuration
{
300
};
};
AnimatedExpander
::
AnimatedExpander
(
const
QString
&
title
,
QWidget
*
parent
)
:
QWidget
(
parent
)
AnimatedExpander
::
AnimatedExpander
(
const
QString
&
title
,
const
QString
&
accessibleTitle
,
QWidget
*
parent
)
:
QWidget
{
parent
}
{
toggleButton
.
setStyleSheet
(
QStringLiteral
(
"QToolButton { border: none; }"
));
toggleButton
.
setToolButtonStyle
(
Qt
::
ToolButtonTextBesideIcon
);
toggleButton
.
setArrowType
(
Qt
::
ArrowType
::
RightArrow
);
toggleButton
.
setText
(
title
);
if
(
!
accessibleTitle
.
isEmpty
())
{
toggleButton
.
setAccessibleName
(
accessibleTitle
);
}
toggleButton
.
setCheckable
(
true
);
toggleButton
.
setChecked
(
false
);
...
...
@@ -324,7 +328,7 @@ public:
mainLay
->
addWidget
(
listView
,
1
);
// Setup the advanced area
auto
expander
=
new
AnimatedExpander
{
i18n
(
"Advanced"
),
q
};
auto
expander
=
new
AnimatedExpander
{
i18n
(
"Advanced"
),
i18n
(
"Show advanced options"
),
q
};
mainLay
->
addWidget
(
expander
);
auto
advLay
=
new
QVBoxLayout
;
...
...
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