mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 16:29:44 -05:00
Use monospace font in the password generator combo box.
This commit is contained in:
parent
6f3648d63e
commit
97f374a189
@ -44,10 +44,14 @@ void PasswordComboBox::setEcho(bool echo)
|
||||
if (echo) {
|
||||
// add fake item to show visual indication that a popup is available
|
||||
addItem("");
|
||||
|
||||
setStyleSheet("QComboBox { font-family: monospace; }");
|
||||
}
|
||||
else {
|
||||
// clear items so the combobox indicates that no popup menu is available
|
||||
clear();
|
||||
|
||||
setStyleSheet("QComboBox { font-family: initial; }");
|
||||
}
|
||||
|
||||
setEditText(current);
|
||||
|
Loading…
Reference in New Issue
Block a user