Surface: move to new style connect()

This commit is contained in:
wmayer
2023-01-13 15:21:37 +01:00
parent be9f68f46f
commit 4da8c3682e
5 changed files with 8 additions and 10 deletions

View File

@@ -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);
}
/*