From cac07c2f221ef2dcbfa176740ba9f3b579ff4564 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 25 Apr 2020 14:20:35 +0530 Subject: [PATCH] macOS: hide accelerator key underlines since they dont work anyway as Apple does not believe in them --- src/calibre/gui2/progress_indicator/QProgressIndicator.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp b/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp index dbe356b5c1..c1b24959a0 100644 --- a/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp +++ b/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp @@ -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; }