int QSequentialAnimationGroup::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QAnimationGroup::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 2) qt_static_metacall(this, _c, _id, _a); _id -= 2; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< QAbstractAnimation**>(_v) = currentAnimation(); break; } _id -= 1; } else if (_c == QMetaObject::WriteProperty) { _id -= 1; } else if (_c == QMetaObject::ResetProperty) { _id -= 1; } else if (_c == QMetaObject::QueryPropertyDesignable) { _id -= 1; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 1; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 1; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 1; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 1; } #endif // QT_NO_PROPERTIES return _id; }
//______________________________________________ MenuBarDataV1::MenuBarDataV1( QObject* parent, QWidget* target, int duration ): MenuBarData( parent, target ) { target->installEventFilter( this ); // setup timeLine _current._animation = new Animation( duration, this ); setupAnimation( currentAnimation(), "currentOpacity" ); currentAnimation().data()->setDirection( Animation::Forward ); _previous._animation = new Animation( duration, this ); setupAnimation( previousAnimation(), "previousOpacity" ); previousAnimation().data()->setDirection( Animation::Backward ); }