mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-08 21:59:10 +02:00
qt: Use new Qt5 connect syntax
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -18,5 +18,5 @@ void ConfirmMessage(QString* text, int msec)
|
||||
}
|
||||
}
|
||||
delete callback;
|
||||
}), SLOT(call()));
|
||||
}), &Callback::call);
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ void ConfirmSend(QString* text = nullptr, bool cancel = false)
|
||||
}
|
||||
}
|
||||
delete callback;
|
||||
}), SLOT(call()));
|
||||
}), &Callback::call);
|
||||
}
|
||||
|
||||
//! Send coins to address and return txid.
|
||||
|
||||
Reference in New Issue
Block a user