Surface: replace slots with member function pointers
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user