INodeEditor: Make use of Qt 5 signals and slots

This commit is contained in:
Lioncash 2020-07-03 07:05:23 -04:00
parent bc09727429
commit 1be07ca571
1 changed files with 6 additions and 6 deletions

View File

@ -34,12 +34,12 @@ INodeEditor::INodeEditor(QWidget *pParent)
mpTransformCombo->addItem(tr("Local")); mpTransformCombo->addItem(tr("Local"));
// Connect signals and slots // Connect signals and slots
connect(mGizmoActions[0], SIGNAL(triggered()), this, SLOT(OnSelectObjectsTriggered())); connect(mGizmoActions[0], &QAction::triggered, this, &INodeEditor::OnSelectObjectsTriggered);
connect(mGizmoActions[1], SIGNAL(triggered()), this, SLOT(OnTranslateTriggered())); connect(mGizmoActions[1], &QAction::triggered, this, &INodeEditor::OnTranslateTriggered);
connect(mGizmoActions[2], SIGNAL(triggered()), this, SLOT(OnRotateTriggered())); connect(mGizmoActions[2], &QAction::triggered, this, &INodeEditor::OnRotateTriggered);
connect(mGizmoActions[3], SIGNAL(triggered()), this, SLOT(OnScaleTriggered())); connect(mGizmoActions[3], &QAction::triggered, this, &INodeEditor::OnScaleTriggered);
connect(mpTransformCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(OnTransformSpaceChanged(int))); connect(mpTransformCombo, qOverload<int>(&QComboBox::currentIndexChanged), this, &INodeEditor::OnTransformSpaceChanged);
connect(mpSelection, SIGNAL(Modified()), this, SLOT(OnSelectionModified())); connect(mpSelection, &CNodeSelection::Modified, this, &INodeEditor::OnSelectionModified);
} }
INodeEditor::~INodeEditor() INodeEditor::~INodeEditor()