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
|
// Create undo actions
|
||||||
QAction *pUndoAction = mUndoStack.createUndoAction(this);
|
QAction *pUndoAction = mUndoStack.createUndoAction(this);
|
||||||
QAction *pRedoAction = mUndoStack.createRedoAction(this);
|
QAction *pRedoAction = mUndoStack.createRedoAction(this);
|
||||||
pUndoAction->setShortcut(QKeySequence("Ctrl+Z"));
|
pUndoAction->setShortcut(QKeySequence::Undo);
|
||||||
pRedoAction->setShortcut(QKeySequence("Ctrl+Y"));
|
pRedoAction->setShortcut(QKeySequence::Redo);
|
||||||
mUndoActions.push_back(pUndoAction);
|
mUndoActions.push_back(pUndoAction);
|
||||||
mUndoActions.push_back(pRedoAction);
|
mUndoActions.push_back(pRedoAction);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue