diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2016-08-09 15:47:32 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2016-08-10 11:44:08 +0000 |
commit | a50481f6c300035d15efad900e6674f69bf15f06 (patch) | |
tree | a9c8484ca3de485e79ab87f4fea6e47068c1c722 /src | |
parent | 631cbba46cf1d2c02eccf7c3960e6f934d0323f0 (diff) |
This method is not needed anymore.
Because of it it was not possible to read and write properties with newer
Qt versions
Change-Id: Ie0e12ef7cc4968e7cba8d59bc3629e5dd485e785
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/qdbusinterfacewrapper.cpp | 26 | ||||
-rw-r--r-- | src/qdbusinterfacewrapper.h | 2 |
2 files changed, 0 insertions, 28 deletions
diff --git a/src/qdbusinterfacewrapper.cpp b/src/qdbusinterfacewrapper.cpp index 6f54993..363caae 100644 --- a/src/qdbusinterfacewrapper.cpp +++ b/src/qdbusinterfacewrapper.cpp @@ -53,32 +53,6 @@ QDBusInterfaceWrapper::QDBusInterfaceWrapper(const QString &service, const QStri SLOT(onPropertiesChanged(QString,QVariantMap,QStringList))); } -int QDBusInterfaceWrapper::qt_metacall(QMetaObject::Call _c, int _id, void **_a) -{ - if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty) { - QMetaProperty mp = metaObject()->property(_id); - - QVariant var; - if (_c == QMetaObject::ReadProperty) { - var = QVariant(mp.type()); - } else { - var = *reinterpret_cast<QVariant*>(_a[0]); - } - - int status = -1; - void *args[] = { 0, &var, &status}; - - QDBusInterface::qt_metacall(_c, _id, args); - - QVariant &returnValue = *reinterpret_cast<QVariant*>(_a[0]); - returnValue = var; - - return status; - } else { - return QDBusInterface::qt_metacall(_c, _id, _a); - } -} - void QDBusInterfaceWrapper::onPropertiesChanged(const QString &interfaceName, const QVariantMap &changed_properties, const QStringList &invalidated_properties) { if (interfaceName == interfaceName) { diff --git a/src/qdbusinterfacewrapper.h b/src/qdbusinterfacewrapper.h index 5c41453..8ee14ff 100644 --- a/src/qdbusinterfacewrapper.h +++ b/src/qdbusinterfacewrapper.h @@ -50,8 +50,6 @@ public: const QDBusConnection &connection = QDBusConnection::sessionBus(), QObject *parent = 0); - int qt_metacall(QMetaObject::Call _c, int _id, void **_a); - private slots: //FIX ME |