add option to show keyboard shortcuts in right click menu (#5225)

This commit is contained in:
RickyRister 2024-12-09 10:58:37 -08:00 committed by GitHub
parent 8d9b27bf47
commit 8cb1470643
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 51 additions and 0 deletions

View file

@ -180,6 +180,9 @@ int main(int argc, char *argv[])
ui.show();
qDebug("main(): ui.show() finished");
// force shortcuts to be shown/hidden in right-click menus, regardless of system defaults
qApp->setAttribute(Qt::AA_DontShowShortcutsInContextMenus, !SettingsCache::instance().getShowShortcuts());
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif