63QQuick3DQuaternionAnimation::QQuick3DQuaternionAnimation(QObject *parent)
64 : QQuickPropertyAnimation(*(
new QQuick3DQuaternionAnimationPrivate), parent)
66 Q_D(QQuick3DQuaternionAnimation);
67 d->interpolatorType = qMetaTypeId<QQuaternion>();
68 d->defaultToInterpolatorType =
true;
69 d->interpolator = QVariantAnimationPrivate::getInterpolator(d->interpolatorType);
124void QQuick3DQuaternionAnimation::setType(Type type)
126 Q_D(QQuick3DQuaternionAnimation);
133 d->interpolator =
reinterpret_cast<QVariantAnimation::Interpolator>(
reinterpret_cast<
void(*)()>(&q_quaternionNlerpInterpolator));
137 d->interpolator = QVariantAnimationPrivate::getInterpolator(d->interpolatorType);
141 emit typeChanged(type);