From d8e9a5688bb4ea6b0e651fdd9e5774d005b077e2 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Mon, 30 Dec 2019 19:19:26 +0200 Subject: [PATCH] [qt5.14]-restore dragged task to normal in the end after dragging a task, the task should return to normal state. In qt 5.14 default states that have a "when" property do not play well BUG:415333 FIXED-IN:0.9.6 --- plasmoid/package/contents/ui/task/IconItem.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plasmoid/package/contents/ui/task/IconItem.qml b/plasmoid/package/contents/ui/task/IconItem.qml index 1e9828ab9..83353ceb4 100644 --- a/plasmoid/package/contents/ui/task/IconItem.qml +++ b/plasmoid/package/contents/ui/task/IconItem.qml @@ -213,7 +213,8 @@ Item{ states: [ State{ name: "*" - when: !launcherAnimation.running && !newWindowAnimation.running && !taskItem.inAddRemoveAnimation && !fastRestoreAnimation.running + //! since qt 5.14 default state can not use "when" property + //! it breaks restoring transitions otherwise AnchorChanges{ target:iconImageBuffer; @@ -243,7 +244,7 @@ Item{ State{ name: "animating" - when: (launcherAnimation.running || newWindowAnimation.running || fastRestoreAnimation.running) && !taskItem.inAddRemoveAnimation + when: !taskItem.inAddRemoveAnimation && (launcherAnimation.running || newWindowAnimation.running || fastRestoreAnimation.running) AnchorChanges{ target:iconImageBuffer; @@ -655,7 +656,8 @@ Item{ states: [ State{ name: "*" - when: !taskItem.isDragged + //! since qt 5.14 default state can not use "when" property + //! it breaks restoring transitions otherwise }, State{