Home GnuPG

qt: Remove checkbox for passphrase formatting

Description

qt: Remove checkbox for passphrase formatting

* qt/main.cpp (qt_cmd_handler): Pass changed formatted passphrase
options to the dialog.
* qt/pinentrydialog.h (PinEntryDialog): Add field mFormatPassphrase.
Remove field mFormattedPassphraseCB.
(enum PinEntryDialog::FormattedPassphraseMode): Remove.
(struct PinEntryDialog::FormattedPassphraseOptions): Remove fields
mode, label, tooltip. Add field formatPassphrase.
* qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Initialize
mFormatPassphrase.
(PinEntryDialog::setFormattedPassphrase): Set mFormatPassphrase.
Update widgets.
(PinEntryDialog::toggleFormattedPassphrase): Use mFormatPassphrase
instead of state of removed checkbox.

This simplifies the formatted passphrase feature by removing the
possibility to enable/disable the formatting on the fly. Formatting
is now controlled exclusively by a configuration option.