mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-06 04:15:01 -04:00
Use monospace font in the password generator combo box.
This commit is contained in:
parent
6f3648d63e
commit
97f374a189
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue