From 2e9dec88919e75870c50396028144edf4f5660c1 Mon Sep 17 00:00:00 2001 From: Alexander Babikov Date: Sun, 7 Dec 2025 17:04:30 +0500 Subject: [PATCH] Qt: Remove the `shortcutVisibleInContextMenu` property from menu items --- src/qt/qt_mainwindow.cpp | 8 -------- src/qt/qt_mainwindow.ui | 12 ------------ src/qt/qt_vmmanager_mainwindow.ui | 3 --- 3 files changed, 23 deletions(-) diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index df323986e..cd7523985 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -780,10 +780,6 @@ MainWindow::MainWindow(QWidget *parent) ui->actionUpdate_mouse_every_CPU_frame->setChecked(true); } -#ifdef Q_OS_MACOS - ui->actionCtrl_Alt_Del->setShortcutVisibleInContextMenu(true); - ui->actionTake_screenshot->setShortcutVisibleInContextMenu(true); -#endif if (!vnc_enabled) video_setblit(qt_blit); @@ -811,10 +807,6 @@ MainWindow::MainWindow(QWidget *parent) mtr_stop(); mtr_shutdown(); }; -# ifdef Q_OS_MACOS - ui->actionBegin_trace->setShortcutVisibleInContextMenu(true); - ui->actionEnd_trace->setShortcutVisibleInContextMenu(true); -# endif static bool trace = false; connect(ui->actionBegin_trace, &QAction::triggered, this, [this] { if (trace) diff --git a/src/qt/qt_mainwindow.ui b/src/qt/qt_mainwindow.ui index 5b5265b42..46364a258 100644 --- a/src/qt/qt_mainwindow.ui +++ b/src/qt/qt_mainwindow.ui @@ -375,9 +375,6 @@ false - - false - @@ -753,9 +750,6 @@ Ctrl+F11 - - false - @@ -833,9 +827,6 @@ false - - false - @@ -847,9 +838,6 @@ false - - false - diff --git a/src/qt/qt_vmmanager_mainwindow.ui b/src/qt/qt_vmmanager_mainwindow.ui index 99e222d16..2501b1501 100644 --- a/src/qt/qt_vmmanager_mainwindow.ui +++ b/src/qt/qt_vmmanager_mainwindow.ui @@ -171,9 +171,6 @@ false - - false -