64QQuick3DQuaternionAnimation::QQuick3DQuaternionAnimation(QObject *parent)
65 : QQuickPropertyAnimation(*(
new QQuick3DQuaternionAnimationPrivate), parent)
67 Q_D(QQuick3DQuaternionAnimation);
68 d->interpolatorType = qMetaTypeId<QQuaternion>();
69 d->defaultToInterpolatorType =
true;
70 d->interpolator = QVariantAnimationPrivate::getInterpolator(d->interpolatorType);
125void QQuick3DQuaternionAnimation::setType(Type type)
127 Q_D(QQuick3DQuaternionAnimation);
134 d->interpolator =
reinterpret_cast<QVariantAnimation::Interpolator>(
reinterpret_cast<
void(*)()>(&q_quaternionNlerpInterpolator));
138 d->interpolator = QVariantAnimationPrivate::getInterpolator(d->interpolatorType);
142 emit typeChanged(type);