diff --git a/src/Mod/Surface/Gui/TaskFilling.cpp b/src/Mod/Surface/Gui/TaskFilling.cpp index 090a52e4a4..9845802772 100644 --- a/src/Mod/Surface/Gui/TaskFilling.cpp +++ b/src/Mod/Surface/Gui/TaskFilling.cpp @@ -272,11 +272,10 @@ FillingPanel::FillingPanel(ViewProviderFilling* vp, Surface::Filling* obj) action->setShortcut(QString::fromLatin1("Del")); action->setShortcutContext(Qt::WidgetShortcut); ui->listBoundary->addAction(action); - connect(action, SIGNAL(triggered()), this, SLOT(onDeleteEdge())); + connect(action, &QAction::triggered, this, &FillingPanel::onDeleteEdge); ui->listBoundary->setContextMenuPolicy(Qt::ActionsContextMenu); - connect(ui->listBoundary->model(), - SIGNAL(rowsMoved(QModelIndex, int, int, QModelIndex, int)), this, SLOT(onIndexesMoved())); + connect(ui->listBoundary->model(), &QAbstractItemModel::rowsMoved, this, &FillingPanel::onIndexesMoved); } /* diff --git a/src/Mod/Surface/Gui/TaskFillingEdge.cpp b/src/Mod/Surface/Gui/TaskFillingEdge.cpp index 0329b6eab3..9cc17a9f73 100644 --- a/src/Mod/Surface/Gui/TaskFillingEdge.cpp +++ b/src/Mod/Surface/Gui/TaskFillingEdge.cpp @@ -130,7 +130,7 @@ FillingEdgePanel::FillingEdgePanel(ViewProviderFilling* vp, Surface::Filling* ob action->setShortcut(QString::fromLatin1("Del")); action->setShortcutContext(Qt::WidgetShortcut); ui->listUnbound->addAction(action); - connect(action, SIGNAL(triggered()), this, SLOT(onDeleteUnboundEdge())); + connect(action, &QAction::triggered, this, &FillingEdgePanel::onDeleteUnboundEdge); ui->listUnbound->setContextMenuPolicy(Qt::ActionsContextMenu); } diff --git a/src/Mod/Surface/Gui/TaskFillingVertex.cpp b/src/Mod/Surface/Gui/TaskFillingVertex.cpp index 3d38679764..f5084f8f28 100644 --- a/src/Mod/Surface/Gui/TaskFillingVertex.cpp +++ b/src/Mod/Surface/Gui/TaskFillingVertex.cpp @@ -122,7 +122,7 @@ FillingVertexPanel::FillingVertexPanel(ViewProviderFilling* vp, Surface::Filling action->setShortcut(QString::fromLatin1("Del")); action->setShortcutContext(Qt::WidgetShortcut); ui->listFreeVertex->addAction(action); - connect(action, SIGNAL(triggered()), this, SLOT(onDeleteVertex())); + connect(action, &QAction::triggered, this, &FillingVertexPanel::onDeleteVertex); ui->listFreeVertex->setContextMenuPolicy(Qt::ActionsContextMenu); } diff --git a/src/Mod/Surface/Gui/TaskGeomFillSurface.cpp b/src/Mod/Surface/Gui/TaskGeomFillSurface.cpp index f62cc79066..58c2944520 100644 --- a/src/Mod/Surface/Gui/TaskGeomFillSurface.cpp +++ b/src/Mod/Surface/Gui/TaskGeomFillSurface.cpp @@ -207,11 +207,11 @@ GeomFillSurface::GeomFillSurface(ViewProviderGeomFillSurface* vp, Surface::GeomF QAction* remove = new QAction(tr("Remove"), this); remove->setShortcut(QString::fromLatin1("Del")); ui->listWidget->addAction(remove); - connect(remove, SIGNAL(triggered()), this, SLOT(onDeleteEdge())); + connect(remove, &QAction::triggered, this, &GeomFillSurface::onDeleteEdge); QAction* orientation = new QAction(tr("Flip orientation"), this); ui->listWidget->addAction(orientation); - connect(orientation, SIGNAL(triggered()), this, SLOT(onFlipOrientation())); + connect(orientation, &QAction::triggered, this, &GeomFillSurface::onFlipOrientation); ui->listWidget->setContextMenuPolicy(Qt::ActionsContextMenu); } diff --git a/src/Mod/Surface/Gui/TaskSections.cpp b/src/Mod/Surface/Gui/TaskSections.cpp index f5c7f35d27..7db0e5368d 100644 --- a/src/Mod/Surface/Gui/TaskSections.cpp +++ b/src/Mod/Surface/Gui/TaskSections.cpp @@ -266,11 +266,10 @@ SectionsPanel::SectionsPanel(ViewProviderSections* vp, Surface::Sections* obj) : QAction* action = new QAction(tr("Remove"), this); action->setShortcut(QKeySequence::Delete); ui->listSections->addAction(action); - connect(action, SIGNAL(triggered()), this, SLOT(onDeleteEdge())); + connect(action, &QAction::triggered, this, &SectionsPanel::onDeleteEdge); ui->listSections->setContextMenuPolicy(Qt::ActionsContextMenu); - connect(ui->listSections->model(), - SIGNAL(rowsMoved(QModelIndex, int, int, QModelIndex, int)), this, SLOT(onIndexesMoved())); + connect(ui->listSections->model(), &QAbstractItemModel::rowsMoved, this, &SectionsPanel::onIndexesMoved); } /*