macOS: hide accelerator key underlines since they dont work anyway as Apple does not believe in them

This commit is contained in:
Kovid Goyal 2020-04-25 14:20:35 +05:30
parent bf3d7ad5b0
commit cac07c2f22
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -173,6 +173,10 @@ class CalibreStyle: public QProxyStyle {
return QFormLayout::FieldsStayAtSizeHint; // Do not have fields expand to fill all available space in QFormLayout
case SH_ScrollBar_Transient:
return transient_scroller;
#ifdef Q_OS_MAC
case SH_UnderlineShortcut:
return 0;
#endif
default:
break;
}