1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-30 14:50:12 +03:00

[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
This commit is contained in:
Michail Vourlakos 2019-12-30 19:19:26 +02:00
parent 32bcf26eaf
commit d8e9a5688b

View File

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