]> Creatis software - clitk.git/commitdiff
Add Ctrl+O shortcut to open an image
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 19 Feb 2016 10:54:18 +0000 (11:54 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 19 Feb 2016 10:54:18 +0000 (11:54 +0100)
vv/qt_ui/vvMainWindow.ui
vv/vvMainWindow.cxx

index ec68254bd471c4aaddef81bfaaf72a4907525e1f..cf2371ca5314d1901dc9eda84b046615492db43b 100644 (file)
    <property name="text">
     <string>Open image(s)</string>
    </property>
+   <property name="shortcut">
+    <string>Ctrl+O</string>
+   </property>
    <property name="iconVisibleInMenu">
     <bool>true</bool>
    </property>
index 1b6eb607b847090655541490ae68defcd1938f39..effd0fee0bf76fbd3af36fc468d635366471f1d1 100644 (file)
@@ -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();