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