Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 450818 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/corelib/animation/qpropertyanimation.cpp (-3 / +4 lines)
Lines 134-142 void QPropertyAnimationPrivate::updateProperty(const QVariant &newValue) Link Here
134
    }
134
    }
135
135
136
    if (newValue.userType() == propertyType) {
136
    if (newValue.userType() == propertyType) {
137
        //no conversion is needed, we directly call the QMetaObject::metacall
137
        int status = -1;
138
        void *data = const_cast<void*>(newValue.constData());
138
        int flags = 0;
139
        QMetaObject::metacall(targetValue, QMetaObject::WriteProperty, propertyIndex, &data);
139
        void *argv[] = { const_cast<void*>(newValue.data()), 0, &status, &flags };
140
        QMetaObject::metacall(targetValue, QMetaObject::WriteProperty, propertyIndex, argv);
140
    } else {
141
    } else {
141
        targetValue->setProperty(propertyName.constData(), newValue);
142
        targetValue->setProperty(propertyName.constData(), newValue);
142
    }
143
    }

Return to bug 450818