diff --git a/src/controls/Units.qml b/src/controls/Units.qml --- a/src/controls/Units.qml +++ b/src/controls/Units.qml @@ -74,6 +74,12 @@ */ property real devicePixelRatio: Math.max(1, ((fontMetrics.font.pixelSize*0.75) / fontMetrics.font.pointSize)) + /** + * units.veryLongDuration should be used for specialty animations that benefit + * from being even longer than longDuration. + */ + property int veryLongDuration: 500 + /** * units.longDuration should be used for longer, screen-covering animations, for opening and * closing of dialogs and other "not too small" animations diff --git a/src/controls/plugins.qmltypes b/src/controls/plugins.qmltypes --- a/src/controls/plugins.qmltypes +++ b/src/controls/plugins.qmltypes @@ -2083,6 +2083,7 @@ Property { name: "devicePixelRatio"; type: "double" } Property { name: "longDuration"; type: "int" } Property { name: "shortDuration"; type: "int" } + Property { name: "veryLongDuration"; type: "int" } Property { name: "toolTipDelay"; type: "int" } Property { name: "wheelScrollLines"; type: "int"; isReadonly: true } Property { name: "fontMetrics"; type: "QVariant" } diff --git a/src/styles/org.kde.desktop/Units.qml b/src/styles/org.kde.desktop/Units.qml --- a/src/styles/org.kde.desktop/Units.qml +++ b/src/styles/org.kde.desktop/Units.qml @@ -70,6 +70,12 @@ */ property real devicePixelRatio: Math.max(1, (fontMetrics.font.pixelSize / fontMetrics.font.pointSize)) + /** + * units.veryLongDuration should be used for specialty animations that benefit + * from being even longer than longDuration. + */ + property int veryLongDuration: 500 + /** * units.longDuration should be used for longer, screen-covering animations, for opening and * closing of dialogs and other "not too small" animations