Add a general mechanism to make entered password visible
Attaching the PasswordToggle widget to a QLineEdit adds an icon to
temporarily make the text in the widget visible when needed.
(cherry picked from commit 05ff3958264c37eaf0adf5b0546b3523edbbfcd4)