Replaced a couple manual QKeySequences with enums to ensure the correct platform-independent key binding
This commit is contained in:
parent
394953434d
commit
aeb6cd08d6
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue