Home GnuPG

qt: Copy passphrase without separators to clipboard

Description

qt: Copy passphrase without separators to clipboard

* qt/pinlineedit.cpp, qt/pinlineedit.h (PinLineEdit::copy,
PinLineEdit::cut): New.
* qt/pinlineedit.cpp (PinLineEdit::Private::copyToClipboard): New.
(PinLineEdit::keyPressEvent): Handle more key sequences.

This makes sure that passphrase is copied without formatting separators
to the clipboard. Copying the selection made with the mouse to the
selection clipboard is not handled because the behavior of QLineEdit
on mouse release cannot be modified easily.

Details

Provenance
ikloeckerAuthored on Jul 8 2021, 4:49 PM
Parents
rPde7024156777: qt: Support passphrase formatting
Branches
Unknown
Tags
Unknown
Tasks
T5517: Improvements for symmetric encryption