From 1be07ca571ed34468a4bb99d862d82c50ffdb56e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 3 Jul 2020 07:05:23 -0400 Subject: [PATCH] INodeEditor: Make use of Qt 5 signals and slots --- src/Editor/INodeEditor.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Editor/INodeEditor.cpp b/src/Editor/INodeEditor.cpp index b3dd4093..e5f502b5 100644 --- a/src/Editor/INodeEditor.cpp +++ b/src/Editor/INodeEditor.cpp @@ -34,12 +34,12 @@ INodeEditor::INodeEditor(QWidget *pParent) mpTransformCombo->addItem(tr("Local")); // Connect signals and slots - connect(mGizmoActions[0], SIGNAL(triggered()), this, SLOT(OnSelectObjectsTriggered())); - connect(mGizmoActions[1], SIGNAL(triggered()), this, SLOT(OnTranslateTriggered())); - connect(mGizmoActions[2], SIGNAL(triggered()), this, SLOT(OnRotateTriggered())); - connect(mGizmoActions[3], SIGNAL(triggered()), this, SLOT(OnScaleTriggered())); - connect(mpTransformCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(OnTransformSpaceChanged(int))); - connect(mpSelection, SIGNAL(Modified()), this, SLOT(OnSelectionModified())); + connect(mGizmoActions[0], &QAction::triggered, this, &INodeEditor::OnSelectObjectsTriggered); + connect(mGizmoActions[1], &QAction::triggered, this, &INodeEditor::OnTranslateTriggered); + connect(mGizmoActions[2], &QAction::triggered, this, &INodeEditor::OnRotateTriggered); + connect(mGizmoActions[3], &QAction::triggered, this, &INodeEditor::OnScaleTriggered); + connect(mpTransformCombo, qOverload(&QComboBox::currentIndexChanged), this, &INodeEditor::OnTransformSpaceChanged); + connect(mpSelection, &CNodeSelection::Modified, this, &INodeEditor::OnSelectionModified); } INodeEditor::~INodeEditor()