mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-01-05 18:45:55 -05:00
Fix button highlighting in multiple dialogs
* Changed style so that only default buttons have full background highlight. This prevents confusion as to which button in various dialogs is the default/desired choice. * Move password generator popup into static function outside of PasswordEdit so other parts of the program can easily access it. * QDialog forces 'autoDefault' property on all buttons causing them to obtain background highlight when they are focused. Moved Password Generator outside of a QDialog and forced 'autoDefault' to false on Browser Access Dialog. * Fixed button ordering in Totp Setup Dialog * About dialog close button is now the default button
This commit is contained in:
parent
fbd78037ff
commit
243f68e0e8
9 changed files with 52 additions and 29 deletions
|
|
@ -218,6 +218,8 @@ AboutDialog::AboutDialog(QWidget* parent)
|
|||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
connect(m_ui->buttonBox, SIGNAL(rejected()), SLOT(close()));
|
||||
connect(m_ui->copyToClipboard, SIGNAL(clicked()), SLOT(copyToClipboard()));
|
||||
|
||||
m_ui->buttonBox->button(QDialogButtonBox::Close)->setDefault(true);
|
||||
}
|
||||
|
||||
AboutDialog::~AboutDialog()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue