Surface: move to new style connect()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user