CCollisionEditor: Make use of Qt 5 signals and slots

This commit is contained in:
Lioncash 2020-06-28 19:09:55 -04:00
parent 6ab8f1495d
commit c204ff3121
1 changed files with 6 additions and 6 deletions

View File

@ -43,8 +43,8 @@ CCollisionEditor::CCollisionEditor(CCollisionMeshGroup* pCollisionMesh, QWidget*
pOBBTreeSlider->setOrientation(Qt::Horizontal);
pOBBTreeSlider->setMaximumWidth(100);
connect(pOBBTreeSlider, SIGNAL(valueChanged(int)),
this, SLOT(OnOBBTreeDepthChanged(int)));
connect(pOBBTreeSlider, &QSlider::valueChanged,
this, &CCollisionEditor::OnOBBTreeDepthChanged);
mpUI->ToolBar->addWidget(pOBBTreeSlider);
@ -53,11 +53,11 @@ CCollisionEditor::CCollisionEditor(CCollisionMeshGroup* pCollisionMesh, QWidget*
mpUI->ToolBar->addWidget(pSpacerWidget);
// Connections
connect(mpUI->ActionToggleGrid, SIGNAL(toggled(bool)),
this, SLOT(OnGridToggled(bool)));
connect(mpUI->ActionToggleGrid, &QAction::toggled,
this, &CCollisionEditor::OnGridToggled);
connect(mpUI->ActionToggleOrbit, SIGNAL(toggled(bool)),
this, SLOT(OnOrbitToggled(bool)));
connect(mpUI->ActionToggleOrbit, &QAction::toggled,
this, &CCollisionEditor::OnOrbitToggled);
// Update window title
QString WindowTitle = "%APP_FULL_NAME% - Collision Editor - %1[*]";