void EasingGraph::setOvershoot(qreal newOvershoot)
{
    if ((overshoot() != newOvershoot) && (easingShape()==QLatin1String("Back"))) {
        m_curveFunction.setOvershoot(newOvershoot);
        emit overshootChanged();
        update();
    }
}
Exemple #2
0
int Window::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: curveChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: pathChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 2: periodChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
        case 3: amplitudeChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
        case 4: overshootChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
        default: ;
        }
        _id -= 5;
    }
    return _id;
}