From 1dfeba065d7121eb27aa44a792095af817652683 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Fri, 19 Feb 2016 11:54:18 +0100 Subject: [PATCH] Add Ctrl+O shortcut to open an image --- vv/qt_ui/vvMainWindow.ui | 3 +++ vv/vvMainWindow.cxx | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/vv/qt_ui/vvMainWindow.ui b/vv/qt_ui/vvMainWindow.ui index ec68254..cf2371c 100644 --- a/vv/qt_ui/vvMainWindow.ui +++ b/vv/qt_ui/vvMainWindow.ui @@ -898,6 +898,9 @@ Open image(s) + + Ctrl+O + true diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index 1b6eb60..effd0fe 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -150,7 +150,6 @@ vvMainWindow::vvMainWindow():vvMainWindowBase() contextActions.resize(0); QAction* actionOpen_new_image = contextMenu.addAction(QIcon(QString::fromUtf8(":/common/icons/fileopen.png")), tr("O&pen new Image")); - actionOpen_new_image->setShortcut(QKeySequence(tr("Ctrl+O"))); connect(actionOpen_new_image,SIGNAL(triggered()),this,SLOT(OpenImages())); contextActions.push_back(actionOpen_new_image); contextMenu.addSeparator(); -- 2.47.1