mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 00:39:43 -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) {
|
if (echo) {
|
||||||
// add fake item to show visual indication that a popup is available
|
// add fake item to show visual indication that a popup is available
|
||||||
addItem("");
|
addItem("");
|
||||||
|
|
||||||
|
setStyleSheet("QComboBox { font-family: monospace; }");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// clear items so the combobox indicates that no popup menu is available
|
// clear items so the combobox indicates that no popup menu is available
|
||||||
clear();
|
clear();
|
||||||
|
|
||||||
|
setStyleSheet("QComboBox { font-family: initial; }");
|
||||||
}
|
}
|
||||||
|
|
||||||
setEditText(current);
|
setEditText(current);
|
||||||
|
Loading…
Reference in New Issue
Block a user