From 2a5ccd3bd191b75b9fa148a8fa7f3d3ddc225add Mon Sep 17 00:00:00 2001 From: Niels Ole Salscheider Date: Sun, 3 Sep 2017 22:00:29 +0200 Subject: Drop support for Qt 4 --- src/client/QXmppInvokable.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/client/QXmppInvokable.cpp') diff --git a/src/client/QXmppInvokable.cpp b/src/client/QXmppInvokable.cpp index 39b92f85..e44b6296 100644 --- a/src/client/QXmppInvokable.cpp +++ b/src/client/QXmppInvokable.cpp @@ -58,11 +58,7 @@ QVariant QXmppInvokable::dispatch( const QByteArray & method, const QList< QVari const char *typeName = metaObject()->method(idx).typeName(); int resultType = QMetaType::type(typeName); -#if QT_VERSION >= 0x050000 void *result = QMetaType::create(resultType, 0); -#else - void *result = QMetaType::construct(resultType, 0); -#endif QGenericReturnArgument ret( typeName, result ); QList genericArgs; @@ -115,11 +111,7 @@ void QXmppInvokable::buildMethodHash( ) int methodCount = metaObject()->methodCount (); for( int idx = 0; idx < methodCount; ++idx) { -#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) QByteArray signature = metaObject()->method(idx).methodSignature(); -#else - QByteArray signature = metaObject()->method(idx).signature(); -#endif m_methodHash[signature.left(signature.indexOf('('))] = idx; // qDebug() << metaObject()->method(idx).parameterTypes(); } @@ -133,11 +125,7 @@ QStringList QXmppInvokable::interfaces( ) const { if( metaObject()->method(idx).methodType() == QMetaMethod::Slot ) { -#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) QByteArray signature = metaObject()->method(idx).methodSignature(); -#else - QByteArray signature = metaObject()->method(idx).signature(); -#endif results << signature.left(signature.indexOf('(')); } } -- cgit v1.2.3