Commit 41c24a33 authored by Elvis Angelaccio's avatar Elvis Angelaccio

Implement SH_Widget_Animation_Duration style hint

Summary:
Qt 5.10 deprecates the SH_Widget_Animate style hint in favor of a new
SH_Widget_Animation_Duration hint (see [1]).

If we are building against Qt 5.10 or newer, implement the new hint.

[1]: http://code.qt.io/cgit/qt/qtbase.git/commit/?id=04eba7b538072e2811f074bf66fd41f27c90b35c

Reviewers: hpereiradacosta

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D8759
parent 3cc0d307
......@@ -649,9 +649,13 @@ namespace Breeze
case SH_Menu_SloppySubMenus: return true;
#if QT_VERSION >= 0x050000
// TODO Qt6: drop deprecated SH_Widget_Animate
case SH_Widget_Animate: return StyleConfigData::animationsEnabled();
case SH_Menu_SupportsSections: return true;
#endif
#if QT_VERSION >= 0x050A00
case SH_Widget_Animation_Duration: return StyleConfigData::animationsEnabled() ? StyleConfigData::animationsDuration() : 0;
#endif
case SH_DialogButtonBox_ButtonsHaveIcons: return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment