- act->setData(QVariant::fromValue<NetworkId>(id));
- connect(net, SIGNAL(updatedRemotely()), SLOT(networkUpdated()));
- connect(act, SIGNAL(triggered()), SLOT(connectOrDisconnectNet()));
+ act->setData(QVariant::fromValue(id));
+ connect(net, &Network::updatedRemotely, this, [this]() { networkUpdated(); });
+ connect(act, &QAction::triggered, this, &ToolBarActionProvider::connectOrDisconnectNet);