Skip to content

Commit d0649a9

Browse files
deepin-ci-robotmhduiy
authored andcommitted
sync: from linuxdeepin/dtkdeclarative
Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: linuxdeepin/dtkdeclarative#532
1 parent cc95007 commit d0649a9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

qt6/src/qml/AlertToolTip.qml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ToolTip {
1111
property Item target
1212

1313
x: 0
14+
y: target ? target.height + DS.Style.control.spacing : 0
1415
topPadding: DS.Style.alertToolTip.verticalPadding
1516
bottomPadding: DS.Style.alertToolTip.verticalPadding
1617
leftPadding: DS.Style.alertToolTip.horizontalPadding
@@ -40,12 +41,13 @@ ToolTip {
4041
}
4142

4243
enter: Transition {
43-
NumberAnimation { properties: "opacity"; from: 0.0; to: 1.0; duration: 200 }
44+
// TODO: Transparency causes tooltips to appear through the window background - temporarily removed
45+
// NumberAnimation { properties: "opacity"; from: 0.0; to: 1.0; duration: 200 }
4446
NumberAnimation { properties: "y"; from: control.target.height; to: control.target.height + DS.Style.control.spacing; duration: 200 }
4547
}
4648

4749
exit: Transition {
48-
NumberAnimation { properties: "opacity"; from: 1.0; to: 0.0 }
50+
// NumberAnimation { properties: "opacity"; from: 1.0; to: 0.0 }
4951
NumberAnimation { properties: "y"; from: control.target.height + DS.Style.control.spacing ; to: control.target.height }
5052
}
5153
}

0 commit comments

Comments
 (0)