Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.5.0
-
None
Description
When invoking QFileDialog::getExistingDirectory() there are buttons &Choose and &Cancel; it is bad practice to have duplicate keyboard accelerators like this.
In :const char *QDialogButtonBoxPrivate::standardButtonText(QDialogButtonBox::StandardButton sbutton) const
There is a case that looks like this:
case QDialogButtonBox::Cancel:
buttonText = gnomeLayout ? QT_TRANSLATE_NOOP("QDialogButtonBox", "&Cancel") : QT_TRANSLATE_NOOP("QDialogButtonBox", "Cancel");
Meaning that if you are using a gnomeLayout for your dialogs, and you use a QFileDialog::getExistingDirectory(), then there will be 2 "C" keyboard accelerators.