diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -724,10 +724,14 @@ static_cast(&QSignalMapper::map)); connect(banAction365d, &QAction::triggered, signalMapper, static_cast(&QSignalMapper::map)); - connect( - signalMapper, - static_cast(&QSignalMapper::mapped), - this, &RPCConsole::banSelectedNode); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)) + const auto mappedIntEvent = &QSignalMapper::mappedInt; +#else + const auto mappedIntEvent = + static_cast(&QSignalMapper::mapped); +#endif + connect(signalMapper, mappedIntEvent, this, + &RPCConsole::banSelectedNode); // peer table context menu signals connect(ui->peerWidget, &QTableView::customContextMenuRequested, this, diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp --- a/src/qt/transactionview.cpp +++ b/src/qt/transactionview.cpp @@ -183,10 +183,15 @@ mapperThirdPartyTxUrls = new QSignalMapper(this); // Connect actions - connect(mapperThirdPartyTxUrls, - static_cast( - &QSignalMapper::mapped), - this, &TransactionView::openThirdPartyTxUrl); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)) + const auto mappedStringEvent = &QSignalMapper::mappedString; +#else + const auto mappedStringEvent = + static_cast( + &QSignalMapper::mapped); +#endif + connect(mapperThirdPartyTxUrls, mappedStringEvent, this, + &TransactionView::openThirdPartyTxUrl); connect(dateWidget, static_cast(&QComboBox::activated), this,