tqt: Disable echoing if backspace is pressed first.

Authored by Damien Goutte-Gattat via Gnupg-devel <gnupg-devel@gnupg.org> on Aug 4 2018, 11:24 PM.

Description

tqt: Disable echoing if backspace is pressed first.

* tqt/secqlineedit.h (backspacePressed): New signal.
* tqt/secqinternal.cpp (SecTQLineEdit::backspace): Emit new signal.
* tqt/pinentrydialog.h (_got_input): New member field.
(onBackspace): New slot.
* tqt/pinentrydialog.cpp (onBackspace): New slot.
(PinEntryDialog::updateQuality): Prevent echo disabling as soon as
the text has been edited.
  • GnuPG-bug-id: T3428
  • Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>