mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-05 20:55:59 +00:00
IEditor: Make use of Qt 5 signals and slots
This commit is contained in:
parent
694f4ce03b
commit
bc09727429
@ -23,7 +23,7 @@ IEditor::IEditor(QWidget* pParent)
|
|||||||
mUndoActions.push_back(pUndoAction);
|
mUndoActions.push_back(pUndoAction);
|
||||||
mUndoActions.push_back(pRedoAction);
|
mUndoActions.push_back(pRedoAction);
|
||||||
|
|
||||||
connect(&mUndoStack, SIGNAL(indexChanged(int)), this, SLOT(OnUndoStackIndexChanged()));
|
connect(&mUndoStack, &QUndoStack::indexChanged, this, &IEditor::OnUndoStackIndexChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
QUndoStack& IEditor::UndoStack()
|
QUndoStack& IEditor::UndoStack()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user