Replaced a couple manual QKeySequences with enums to ensure the correct platform-independent key binding

This commit is contained in:
parax0 2015-12-13 13:53:02 -07:00
parent 394953434d
commit aeb6cd08d6
1 changed files with 2 additions and 2 deletions

View File

@ -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);