[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
pull/16/head
Michail Vourlakos 5 years ago
parent 32bcf26eaf
commit d8e9a5688b

@ -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{

Loading…
Cancel
Save