diff options
| author | João Barbosa <[email protected]> | 2018-06-24 16:18:22 +0100 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2018-08-21 09:43:54 +0100 |
| commit | f78558f1e39198779bdb17e2b0e256fb99ad4b28 (patch) | |
| tree | e70cf07bb8f64df2f4b65a4999b8bafa435d9d51 /src/qt/test/paymentservertests.cpp | |
| parent | Merge #13968: [wallet] couple of walletcreatefundedpsbt fixes (diff) | |
| download | discoin-f78558f1e39198779bdb17e2b0e256fb99ad4b28.tar.xz discoin-f78558f1e39198779bdb17e2b0e256fb99ad4b28.zip | |
qt: Use new Qt5 connect syntax
Diffstat (limited to 'src/qt/test/paymentservertests.cpp')
| -rw-r--r-- | src/qt/test/paymentservertests.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qt/test/paymentservertests.cpp b/src/qt/test/paymentservertests.cpp index e92f9d7a5..5384b9e8b 100644 --- a/src/qt/test/paymentservertests.cpp +++ b/src/qt/test/paymentservertests.cpp @@ -39,8 +39,8 @@ X509 *parse_b64der_cert(const char* cert_data) static SendCoinsRecipient handleRequest(PaymentServer* server, std::vector<unsigned char>& data) { RecipientCatcher sigCatcher; - QObject::connect(server, SIGNAL(receivedPaymentRequest(SendCoinsRecipient)), - &sigCatcher, SLOT(getRecipient(SendCoinsRecipient))); + QObject::connect(server, &PaymentServer::receivedPaymentRequest, + &sigCatcher, &RecipientCatcher::getRecipient); // Write data to a temp file: QTemporaryFile f; @@ -57,8 +57,8 @@ static SendCoinsRecipient handleRequest(PaymentServer* server, std::vector<unsig // which will lead to a test failure anyway. QCoreApplication::sendEvent(&object, &event); - QObject::disconnect(server, SIGNAL(receivedPaymentRequest(SendCoinsRecipient)), - &sigCatcher, SLOT(getRecipient(SendCoinsRecipient))); + QObject::disconnect(server, &PaymentServer::receivedPaymentRequest, + &sigCatcher, &RecipientCatcher::getRecipient); // Return results from sigCatcher return sigCatcher.recipient; |