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:
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…
x
Reference in New Issue
Block a user