Skip to content
GitLab
Menu
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
1020fcd7
Commit
1020fcd7
authored
Dec 18, 2020
by
Ingo Klöcker
Browse files
Fix typo and copy&paste bug, and improve tooltips
parent
4bb358ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/view/pgpcardwidget.cpp
View file @
1020fcd7
...
...
@@ -196,26 +196,31 @@ PGPCardWidget::PGPCardWidget(QWidget *parent):
auto
actionLayout
=
new
QHBoxLayout
;
auto
generateButton
=
new
QPushButton
(
i18n
(
"Generate new Keys"
));
generateButton
->
setToolTip
(
i18n
(
"Create a new primary key and generate subkeys on the card."
));
actionLayout
->
addWidget
(
generateButton
);
connect
(
generateButton
,
&
QPushButton
::
clicked
,
this
,
&
PGPCardWidget
::
genkeyRequested
);
auto
pinButtton
=
new
QPushButton
(
i18n
(
"Change PIN"
));
pinButtton
->
setToolTip
(
i18n
(
"Change the PIN required to unblock the smartcard."
));
actionLayout
->
addWidget
(
pinButtton
);
connect
(
pinButtton
,
&
QPushButton
::
clicked
,
this
,
[
this
]
()
{
doChangePin
(
OpenPGPCard
::
pinKeyRef
());
});
auto
pukButton
=
new
QPushButton
(
i18n
(
"Change Admin PIN"
));
pukButton
->
setToolTip
(
i18n
(
"Change the PIN required to unlock the smartcard."
));
actionLayout
->
addWidget
(
pukButton
);
connect
(
pukButton
,
&
QPushButton
::
clicked
,
this
,
[
this
]
()
{
doChangePin
(
OpenPGPCard
::
adminPinKeyRef
());
});
auto
resetCodeButton
=
new
QPushButton
(
i18n
(
"Change Reset Code"
));
pukButton
->
setToolTip
(
i18n
(
"Change the PIN required to reset the smartcard to an empty state."
));
actionLayout
->
addWidget
(
resetCodeButton
);
connect
(
resetCodeButton
,
&
QPushButton
::
clicked
,
this
,
[
this
]
()
{
doChangePin
(
OpenPGPCard
::
resetCodeKeyRef
(),
ChangePinCommand
::
ResetMode
);
});
{
auto
generateButton
=
new
QPushButton
(
i18n
(
"Generate new Keys"
));
generateButton
->
setToolTip
(
i18n
(
"Create a new primary key and generate subkeys on the card."
));
actionLayout
->
addWidget
(
generateButton
);
connect
(
generateButton
,
&
QPushButton
::
clicked
,
this
,
&
PGPCardWidget
::
genkeyRequested
);
}
{
auto
pinButton
=
new
QPushButton
(
i18n
(
"Change PIN"
));
pinButton
->
setToolTip
(
i18n
(
"Change the PIN required for using the keys on the smartcard."
));
actionLayout
->
addWidget
(
pinButton
);
connect
(
pinButton
,
&
QPushButton
::
clicked
,
this
,
[
this
]
()
{
doChangePin
(
OpenPGPCard
::
pinKeyRef
());
});
}
{
auto
pukButton
=
new
QPushButton
(
i18n
(
"Change Admin PIN"
));
pukButton
->
setToolTip
(
i18n
(
"Change the PIN required for administrative operations."
));
actionLayout
->
addWidget
(
pukButton
);
connect
(
pukButton
,
&
QPushButton
::
clicked
,
this
,
[
this
]
()
{
doChangePin
(
OpenPGPCard
::
adminPinKeyRef
());
});
}
{
auto
resetCodeButton
=
new
QPushButton
(
i18n
(
"Change Reset Code"
));
resetCodeButton
->
setToolTip
(
i18n
(
"Change the PIN required to unblock the smartcard and set a new PIN."
));
actionLayout
->
addWidget
(
resetCodeButton
);
connect
(
resetCodeButton
,
&
QPushButton
::
clicked
,
this
,
[
this
]
()
{
doChangePin
(
OpenPGPCard
::
resetCodeKeyRef
(),
ChangePinCommand
::
ResetMode
);
});
}
if
(
CreateOpenPGPKeyFromCardKeysCommand
::
isSupported
())
{
mKeyForCardKeysButton
=
new
QPushButton
(
this
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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