Home GnuPG

qt: Show hint if passphrase is shown and formatting is enabled

Description

qt: Show hint if passphrase is shown and formatting is enabled

* qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Initialize
new fields.
(PinEntryDialog::PinEntryDialog): Add new widgets to GUI.
(PinEntryDialog::setFormattedPassphrase): Set text of the hint.
(PinEntryDialog::toggleFormattedPassphrase): Show/hide hint and spacer
as needed.
* qt/pinentrydialog.h (PinEntryDialog): Add fields
mFormattedPassphraseHint, mFormattedPassphraseHintSpacer.

The spacer is used to avoid unnecessary layout changes. It ensures that
the vertical space taken by the hint is retained when the hint is hidden.

Details

Provenance
ikloeckerAuthored on Tue, Jul 13, 5:11 PM
Parents
rP8ad23d6f18ce: qt: Copy passphrase without separators to clipboard
Branches
Unknown
Tags
Unknown
Tasks
T5517: Improvements for symmetric encryption