From: tbaudier Date: Fri, 19 Feb 2016 10:54:18 +0000 (+0100) Subject: Add Ctrl+O shortcut to open an image X-Git-Tag: v1.4.0~52 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=1dfeba065d7121eb27aa44a792095af817652683;p=clitk.git Add Ctrl+O shortcut to open an image --- 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();