CCollisionEditor: Make use of Qt 5 signals and slots
This commit is contained in:
parent
6ab8f1495d
commit
c204ff3121
|
@ -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[*]";
|
||||||
|
|
Loading…
Reference in New Issue