tweak slider animations

This commit is contained in:
FarmRadio Hangar 2016-05-13 09:44:40 +03:00
parent d0959864e7
commit 1b79a94f26
1 changed files with 6 additions and 2 deletions

View File

@ -149,7 +149,9 @@ SliderStateMachine::SliderStateMachine(Slider *parent,
transition = new QSignalTransition(parent, SIGNAL(sliderPressed()));
transition->setTargetState(slidingState);
transition->addAnimation(new QPropertyAnimation(thumb, "diameter"));
animation = new QPropertyAnimation(thumb, "diameter");
animation->setDuration(70);
transition->addAnimation(animation);
animation = new QPropertyAnimation(thumb, "haloSize");
animation->setEasingCurve(QEasingCurve::InOutSine);
@ -160,7 +162,9 @@ SliderStateMachine::SliderStateMachine(Slider *parent,
transition = new QSignalTransition(parent, SIGNAL(sliderReleased()));
transition->setTargetState(focusState);
transition->addAnimation(new QPropertyAnimation(thumb, "diameter"));
animation = new QPropertyAnimation(thumb, "diameter");
animation->setDuration(70);
transition->addAnimation(animation);
animation = new QPropertyAnimation(thumb, "haloSize");
animation->setEasingCurve(QEasingCurve::InOutSine);