Port away from deprecated QStyle::SH_Widget_Animate

Authored by elvisangelaccio on Jan 21 2018, 9:50 AM.

Description

Port away from deprecated QStyle::SH_Widget_Animate

Summary:
Use the new QStyle::SH_Widget_Animation_Duration instead,
which allows us to not manually hardcode the duration.
We still use 1 if animations are disabled,
otherwise the scroll would not work at all.

See also D5883 for some background.

Test Plan: Played with different values in the Animation tab of the Breeze config dialog.

Reviewers: Dolphin, broulik

Reviewed By: broulik

Subscribers: broulik

Differential Revision: https://phabricator.kde.org/D10005

Details

Committed
elvisangelaccioJan 27 2018, 4:40 PM
Reviewer
broulik
Differential Revision
D10005: Port away from deprecated QStyle::SH_Widget_Animate
Parents
R318:c5eb4e31161c: Use BatchRenameJob to rename multiple files in Dolphin
Branches
Unknown
Tags
Unknown