Surface: replace slots with member function pointers

This commit is contained in:
wmayer
2023-02-01 16:27:00 +01:00
committed by Uwe
parent 9aede79ef8
commit 0363ebdf8f
5 changed files with 7 additions and 7 deletions

View File

@@ -714,7 +714,7 @@ void FillingPanel::onSelectionChanged(const Gui::SelectionChanges& msg)
}
editedObject->recomputeFeature();
QTimer::singleShot(50, this, SLOT(clearSelection()));
QTimer::singleShot(50, this, &FillingPanel::clearSelection);
}
}

View File

@@ -486,7 +486,7 @@ void FillingEdgePanel::onSelectionChanged(const Gui::SelectionChanges& msg)
}
editedObject->recomputeFeature();
QTimer::singleShot(50, this, SLOT(clearSelection()));
QTimer::singleShot(50, this, &FillingEdgePanel::clearSelection);
}
}

View File

@@ -320,7 +320,7 @@ void FillingVertexPanel::onSelectionChanged(const Gui::SelectionChanges& msg)
}
editedObject->recomputeFeature();
QTimer::singleShot(50, this, SLOT(clearSelection()));
QTimer::singleShot(50, this, &FillingVertexPanel::clearSelection);
}
}

View File

@@ -93,7 +93,7 @@ void ViewProviderGeomFillSurface::unsetEdit(int ModNum)
{
if (ModNum == ViewProvider::Default) {
// when pressing ESC make sure to close the dialog
QTimer::singleShot(0, &Gui::Control(), SLOT(closeDialog()));
QTimer::singleShot(0, &Gui::Control(), &Gui::ControlSingleton::closeDialog);
}
else {
PartGui::ViewProviderSpline::unsetEdit(ModNum);
@@ -511,7 +511,7 @@ void GeomFillSurface::onSelectionChanged(const Gui::SelectionChanges& msg)
}
editedObject->recomputeFeature();
QTimer::singleShot(50, this, SLOT(clearSelection()));
QTimer::singleShot(50, this, &GeomFillSurface::clearSelection);
}
}

View File

@@ -90,7 +90,7 @@ void ViewProviderSections::unsetEdit(int ModNum)
{
if (ModNum == ViewProvider::Default) {
// when pressing ESC make sure to close the dialog
QTimer::singleShot(0, &Gui::Control(), SLOT(closeDialog()));
QTimer::singleShot(0, &Gui::Control(), &Gui::ControlSingleton::closeDialog);
}
else {
PartGui::ViewProviderSpline::unsetEdit(ModNum);
@@ -475,7 +475,7 @@ void SectionsPanel::onSelectionChanged(const Gui::SelectionChanges& msg)
}
editedObject->recomputeFeature();
QTimer::singleShot(50, this, SLOT(clearSelection()));
QTimer::singleShot(50, this, &SectionsPanel::clearSelection);
}
}