D15611: [KCollapsibleGroupBox] Respect styles that disable widget animations
Christoph Feck
noreply at phabricator.kde.org
Thu Sep 20 01:48:07 BST 2018
cfeck created this revision.
cfeck added a reviewer: Frameworks.
cfeck added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
cfeck requested review of this revision.
REVISION SUMMARY
Query QStyle::SH_Widget_Animate style hint to check if the style has animations.
QTimeLine requires a duration > 0, so use 1 [ms] to make the animation as fast as possible when disabled.
KMessageWidget already respects this style hint.
BUG: 397103
FIXED-IN: 5.51.0
TEST PLAN
./bin/kcollapsiblegroupboxtest with Breeze animations enabled and disabled.
REPOSITORY
R236 KWidgetsAddons
REVISION DETAIL
https://phabricator.kde.org/D15611
AFFECTED FILES
src/kcollapsiblegroupbox.cpp
To: cfeck, #frameworks
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180920/5ec456ea/attachment.html>
More information about the Kde-frameworks-devel
mailing list