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…
Reference in New Issue