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

Implement SH_Widget_Animation_Duration style hint

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.


Reviewers: hpereiradacosta

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
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;
#if QT_VERSION >= 0x050A00
case SH_Widget_Animation_Duration: return StyleConfigData::animationsEnabled() ? StyleConfigData::animationsDuration() : 0;
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