From aeb6cd08d60e69255d31dfd4bf9e5b1662375668 Mon Sep 17 00:00:00 2001 From: parax0 Date: Sun, 13 Dec 2015 13:53:02 -0700 Subject: [PATCH] Replaced a couple manual QKeySequences with enums to ensure the correct platform-independent key binding --- UI/INodeEditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/INodeEditor.cpp b/UI/INodeEditor.cpp index 9733910d..13ee1415 100644 --- a/UI/INodeEditor.cpp +++ b/UI/INodeEditor.cpp @@ -12,8 +12,8 @@ INodeEditor::INodeEditor(QWidget *pParent) // Create undo actions QAction *pUndoAction = mUndoStack.createUndoAction(this); QAction *pRedoAction = mUndoStack.createRedoAction(this); - pUndoAction->setShortcut(QKeySequence("Ctrl+Z")); - pRedoAction->setShortcut(QKeySequence("Ctrl+Y")); + pUndoAction->setShortcut(QKeySequence::Undo); + pRedoAction->setShortcut(QKeySequence::Redo); mUndoActions.push_back(pUndoAction); mUndoActions.push_back(pRedoAction);