- connect(Client::instance(), SIGNAL(coreInfoResynchronized()),
- this, SLOT(coreInfoResynchronized()));
+ connect(Client::instance(), &Client::coreInfoResynchronized,
+ this, &CoreInfoDlg::coreInfoResynchronized);
// On legacy cores, CoreInfo data does not send signals. Periodically poll for information.
// 15 seconds seems like a reasonable trade-off as this only happens while the dialog is open.
// On legacy cores, CoreInfo data does not send signals. Periodically poll for information.
// 15 seconds seems like a reasonable trade-off as this only happens while the dialog is open.
- connect(coreInfo, SIGNAL(coreDataChanged(const QVariantMap &)),
- this, SLOT(coreInfoChanged(const QVariantMap &)));
+ connect(coreInfo, &CoreInfo::coreDataChanged,
+ this, &CoreInfoDlg::coreInfoChanged);
// Update with any known core information set before connecting the signal. This is needed for
// both modern (0.13+) and legacy cores.
// Update with any known core information set before connecting the signal. This is needed for
// both modern (0.13+) and legacy cores.
// The layout stretch item should never be removed, so count should always be >= 1.
ui.coreSessionContainer->insertWidget(ui.coreSessionContainer->count() - 1,
coreSessionWidget, 0, Qt::AlignTop);
// The layout stretch item should never be removed, so count should always be >= 1.
ui.coreSessionContainer->insertWidget(ui.coreSessionContainer->count() - 1,
coreSessionWidget, 0, Qt::AlignTop);
- connect(coreSessionWidget, SIGNAL(disconnectClicked(int)), this, SLOT(disconnectClicked(int)));
+ connect(coreSessionWidget, &CoreSessionWidget::disconnectClicked, this, &CoreInfoDlg::disconnectClicked);
.arg(uphours, 2, 10, QChar('0'))
.arg(upmins, 2, 10, QChar('0'))
.arg(uptime, 2, 10, QChar('0'))
.arg(uphours, 2, 10, QChar('0'))
.arg(upmins, 2, 10, QChar('0'))
.arg(uptime, 2, 10, QChar('0'))