mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 11:50:37 +02:00
[qxt] incomingConnection has a different signature
This commit is contained in:
@@ -197,8 +197,13 @@ bool QxtSslServer::autoEncrypt() const
|
||||
/*!
|
||||
* \reimp
|
||||
*/
|
||||
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
|
||||
void QxtSslServer::incomingConnection(qintptr socketDescriptor)
|
||||
#else
|
||||
void QxtSslServer::incomingConnection(int socketDescriptor)
|
||||
#endif
|
||||
{
|
||||
qWarning() << Q_FUNC_INFO << socketDescriptor;
|
||||
QSslSocket* socket = new QSslSocket(this);
|
||||
if(socket->setSocketDescriptor(socketDescriptor)) {
|
||||
socket->setLocalCertificate(qxt_d().localCertificate);
|
||||
|
@@ -61,7 +61,11 @@ public:
|
||||
bool autoEncrypt() const;
|
||||
|
||||
protected:
|
||||
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
|
||||
virtual void incomingConnection(qintptr socketDescriptor);
|
||||
#else
|
||||
virtual void incomingConnection(int socketDescriptor);
|
||||
#endif
|
||||
|
||||
private:
|
||||
QXT_DECLARE_PRIVATE(QxtSslServer)
|
||||
|
Reference in New Issue
Block a user