shortcuts: left/right for prev/next image, hide open action from menu
This commit is contained in:
parent
f202bb58f4
commit
c6b78597e8
|
@ -96,8 +96,14 @@ void ActionManager::setupShortcuts()
|
||||||
actionActualSize->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_0));
|
actionActualSize->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_0));
|
||||||
actionZoomIn->setShortcut(QKeySequence(QKeySequence::ZoomIn));
|
actionZoomIn->setShortcut(QKeySequence(QKeySequence::ZoomIn));
|
||||||
actionZoomOut->setShortcut(QKeySequence(QKeySequence::ZoomOut));
|
actionZoomOut->setShortcut(QKeySequence(QKeySequence::ZoomOut));
|
||||||
actionPrevPicture->setShortcut(QKeySequence(Qt::Key_PageUp));
|
actionPrevPicture->setShortcuts({
|
||||||
actionNextPicture->setShortcut(QKeySequence(Qt::Key_PageDown));
|
QKeySequence(Qt::Key_PageUp),
|
||||||
|
QKeySequence(Qt::Key_Left),
|
||||||
|
});
|
||||||
|
actionNextPicture->setShortcuts({
|
||||||
|
QKeySequence(Qt::Key_PageDown),
|
||||||
|
QKeySequence(Qt::Key_Right),
|
||||||
|
});
|
||||||
actionHorizontalFlip->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_R));
|
actionHorizontalFlip->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_R));
|
||||||
actionCopyPixmap->setShortcut(QKeySequence(QKeySequence::Copy));
|
actionCopyPixmap->setShortcut(QKeySequence(QKeySequence::Copy));
|
||||||
actionPaste->setShortcut(QKeySequence::Paste);
|
actionPaste->setShortcut(QKeySequence::Paste);
|
||||||
|
|
|
@ -408,7 +408,9 @@ void MainWindow::contextMenuEvent(QContextMenuEvent *event)
|
||||||
QAction * helpAction = m_am->actionHelp;
|
QAction * helpAction = m_am->actionHelp;
|
||||||
QAction * propertiesAction = m_am->actionProperties;
|
QAction * propertiesAction = m_am->actionProperties;
|
||||||
|
|
||||||
|
#if 0
|
||||||
menu->addAction(m_am->actionOpen);
|
menu->addAction(m_am->actionOpen);
|
||||||
|
#endif // 0
|
||||||
|
|
||||||
if (copyMenu->actions().count() == 1) {
|
if (copyMenu->actions().count() == 1) {
|
||||||
menu->addActions(copyMenu->actions());
|
menu->addActions(copyMenu->actions());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user