mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-25 11:51:41 -07:00
Revert "makes the tooltip/label appear behind the button."
This reverts commit 62558f47fa.
This commit is contained in:
parent
62558f47fa
commit
aa0c18118b
1 changed files with 5 additions and 6 deletions
|
|
@ -51,15 +51,14 @@ QtObject {
|
||||||
cornerSize: UM.Theme.sizes.default_margin.width;
|
cornerSize: UM.Theme.sizes.default_margin.width;
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.verticalCenter: parent.top;
|
anchors.bottom: parent.top;
|
||||||
|
|
||||||
width: parent.width;
|
width: parent.width;
|
||||||
height: control.hovered ? (label.height + 20) : 0;
|
height: control.hovered ? label.height : 0;
|
||||||
Behavior on height { NumberAnimation { duration: 75; } }
|
Behavior on height { NumberAnimation { duration: 75; } }
|
||||||
|
|
||||||
opacity: control.hovered ? 1.0 : 0.0;
|
opacity: control.hovered ? 1.0 : 0.0;
|
||||||
Behavior on opacity { NumberAnimation { duration: 75; } }
|
Behavior on opacity { NumberAnimation { duration: 75; } }
|
||||||
z: -1;
|
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
id: label
|
id: label
|
||||||
|
|
@ -107,16 +106,16 @@ QtObject {
|
||||||
}
|
}
|
||||||
Behavior on color { ColorAnimation { duration: 50; } }
|
Behavior on color { ColorAnimation { duration: 50; } }
|
||||||
cornerSize: UM.Theme.sizes.default_margin.width;
|
cornerSize: UM.Theme.sizes.default_margin.width;
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.verticalCenter: parent.top;
|
anchors.bottom: parent.top;
|
||||||
|
|
||||||
width: parent.width;
|
width: parent.width;
|
||||||
height: control.hovered ? (label.height + 20) : 0;
|
height: control.hovered ? label.height : 0;
|
||||||
Behavior on height { NumberAnimation { duration: 75; } }
|
Behavior on height { NumberAnimation { duration: 75; } }
|
||||||
|
|
||||||
opacity: control.hovered ? 1.0 : 0.0;
|
opacity: control.hovered ? 1.0 : 0.0;
|
||||||
Behavior on opacity { NumberAnimation { duration: 75; } }
|
Behavior on opacity { NumberAnimation { duration: 75; } }
|
||||||
z: -1;
|
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
id: label
|
id: label
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue