From bc09727429133c999119c5e26f387677f511a1b5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 3 Jul 2020 07:02:15 -0400 Subject: [PATCH] IEditor: Make use of Qt 5 signals and slots --- src/Editor/IEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Editor/IEditor.cpp b/src/Editor/IEditor.cpp index 90548dd8..4ecaa837 100644 --- a/src/Editor/IEditor.cpp +++ b/src/Editor/IEditor.cpp @@ -23,7 +23,7 @@ IEditor::IEditor(QWidget* pParent) mUndoActions.push_back(pUndoAction); mUndoActions.push_back(pRedoAction); - connect(&mUndoStack, SIGNAL(indexChanged(int)), this, SLOT(OnUndoStackIndexChanged())); + connect(&mUndoStack, &QUndoStack::indexChanged, this, &IEditor::OnUndoStackIndexChanged); } QUndoStack& IEditor::UndoStack()