1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-30 19:00:12 +02:00

incomingConnection has another signature on Qt5

This commit is contained in:
Uwe L. Korn
2013-09-03 13:07:36 +02:00
parent 086662edd3
commit 3e21b99904
2 changed files with 17 additions and 1 deletions

View File

@@ -576,6 +576,17 @@ Servent::handleSipInfo( const Tomahawk::peerinfo_ptr& peerInfo )
void
Servent::incomingConnection( int sd )
{
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
Q_UNUSED( sd );
Q_ASSERT( false );
#else
incomingConnection( (qintptr) sd );
#endif
}
void
Servent::incomingConnection( qintptr sd )
{
Q_ASSERT( this->thread() == QThread::currentThread() );

View File

@@ -150,7 +150,12 @@ signals:
void ready();
protected:
void incomingConnection( int sd );
// Would be nice to ifdef this, but we would need CMake 2.8.11 for that as a requirement
// #if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
virtual void incomingConnection( qintptr sd );
// #else
virtual void incomingConnection( int sd );
// #endif
public slots:
void setExternalAddress( QHostAddress ha, unsigned int port );