From 79311750b58d650d49a3f0edd59d31dd132ab8c0 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Tue, 30 Mar 2021 02:29:48 +0300 Subject: qt: Do not assign Alt+ shortcuts to context menu actions Such shortcuts are useless as pressing the Alt key closes a context menu widget immediately. --- src/qt/qrimagewidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qt/qrimagewidget.cpp') diff --git a/src/qt/qrimagewidget.cpp b/src/qt/qrimagewidget.cpp index a71c8831e9..ac463e0988 100644 --- a/src/qt/qrimagewidget.cpp +++ b/src/qt/qrimagewidget.cpp @@ -27,10 +27,10 @@ QRImageWidget::QRImageWidget(QWidget *parent): QLabel(parent), contextMenu(nullptr) { contextMenu = new QMenu(this); - QAction *saveImageAction = new QAction(tr("&Save Image..."), this); + QAction* saveImageAction = new QAction(tr("Save Image..."), this); connect(saveImageAction, &QAction::triggered, this, &QRImageWidget::saveImage); contextMenu->addAction(saveImageAction); - QAction *copyImageAction = new QAction(tr("&Copy Image"), this); + QAction* copyImageAction = new QAction(tr("Copy Image"), this); connect(copyImageAction, &QAction::triggered, this, &QRImageWidget::copyImage); contextMenu->addAction(copyImageAction); } -- cgit v1.2.3