diff --git a/src/qt/receivecoinsdialog.cpp b/src/qt/receivecoinsdialog.cpp --- a/src/qt/receivecoinsdialog.cpp +++ b/src/qt/receivecoinsdialog.cpp @@ -60,14 +60,19 @@ contextMenu->addAction(copyAmountAction); // context menu signals - connect(ui->recentRequestsView, SIGNAL(customContextMenuRequested(QPoint)), - this, SLOT(showMenu(QPoint))); - connect(copyURIAction, SIGNAL(triggered()), this, SLOT(copyURI())); - connect(copyLabelAction, SIGNAL(triggered()), this, SLOT(copyLabel())); - connect(copyMessageAction, SIGNAL(triggered()), this, SLOT(copyMessage())); - connect(copyAmountAction, SIGNAL(triggered()), this, SLOT(copyAmount())); - - connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clear())); + connect(ui->recentRequestsView, &QWidget::customContextMenuRequested, this, + &ReceiveCoinsDialog::showMenu); + connect(copyURIAction, &QAction::triggered, this, + &ReceiveCoinsDialog::copyURI); + connect(copyLabelAction, &QAction::triggered, this, + &ReceiveCoinsDialog::copyLabel); + connect(copyMessageAction, &QAction::triggered, this, + &ReceiveCoinsDialog::copyMessage); + connect(copyAmountAction, &QAction::triggered, this, + &ReceiveCoinsDialog::copyAmount); + + connect(ui->clearButton, &QPushButton::clicked, this, + &ReceiveCoinsDialog::clear); } void ReceiveCoinsDialog::setModel(WalletModel *_model) { @@ -76,8 +81,8 @@ if (_model && _model->getOptionsModel()) { _model->getRecentRequestsTableModel()->sort( RecentRequestsTableModel::Date, Qt::DescendingOrder); - connect(_model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), - this, SLOT(updateDisplayUnit())); + connect(_model->getOptionsModel(), &OptionsModel::displayUnitChanged, + this, &ReceiveCoinsDialog::updateDisplayUnit); updateDisplayUnit(); QTableView *tableView = ui->recentRequestsView; @@ -96,9 +101,8 @@ AMOUNT_MINIMUM_COLUMN_WIDTH); connect(tableView->selectionModel(), - SIGNAL(selectionChanged(QItemSelection, QItemSelection)), this, - SLOT(recentRequestsView_selectionChanged(QItemSelection, - QItemSelection))); + &QItemSelectionModel::selectionChanged, this, + &ReceiveCoinsDialog::recentRequestsView_selectionChanged); // Last 2 columns are set by the columnResizingFixer, when the table // geometry is ready. columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer(