]> cloud.milkyroute.net Git - dolphin.git/commit
Port away from deprecated QStyle::SH_Widget_Animate
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 21 Jan 2018 09:50:11 +0000 (10:50 +0100)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sat, 27 Jan 2018 16:40:59 +0000 (17:40 +0100)
commit7caef6d251a1611842f73a9942f1bfc1dd2ec13b
tree75c3987c162e767048216ebb092b401d1246cb22
parentc5eb4e31161ccf422a2f2492fe998c5c9817bea4
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
src/kitemviews/private/kitemlistsmoothscroller.cpp