diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-03-30 02:29:48 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-04-14 18:47:40 +0300 |
commit | 79311750b58d650d49a3f0edd59d31dd132ab8c0 (patch) | |
tree | 57343f86003f2cdac2d812791ed8fa99fc291795 /src/qt/qrimagewidget.cpp | |
parent | 963e12058f3ca3cdaeefd9aa5a8305fa41afd1a0 (diff) |
qt: Do not assign Alt+<KEY> shortcuts to context menu actions
Such shortcuts are useless as pressing the Alt key closes a context menu
widget immediately.
Diffstat (limited to 'src/qt/qrimagewidget.cpp')
-rw-r--r-- | src/qt/qrimagewidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |