mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:21:16 +02:00
Untabify
This commit is contained in:
parent
9c52c79fe1
commit
7d12482a49
1 changed files with 8 additions and 8 deletions
|
@ -100,9 +100,9 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
// The UI enables an object, rather than manipulating its visibility, so that we can do animations in both directions.
|
// The UI enables an object, rather than manipulating its visibility, so that we can do animations in both directions.
|
||||||
// Because visibility and enabled are booleans, they cannot be animated. So when enabled is changed, we modify a property
|
// Because visibility and enabled are booleans, they cannot be animated. So when enabled is changed, we modify a property
|
||||||
// that can be animated, like scale or opacity, and then when the target animation value is reached, we can modify the
|
// that can be animated, like scale or opacity, and then when the target animation value is reached, we can modify the
|
||||||
// visibility.
|
// visibility.
|
||||||
enabled: false
|
enabled: false
|
||||||
opacity: 0.0
|
opacity: 0.0
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
onOpacityChanged: {
|
onOpacityChanged: {
|
||||||
// Once we're transparent, disable the dialog's visibility.
|
// Once we're transparent, disable the dialog's visibility.
|
||||||
visible = (opacity != 0.0)
|
visible = (opacity != 0.0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -130,10 +130,10 @@ Item {
|
||||||
if (!visible) {
|
if (!visible) {
|
||||||
reset()
|
reset()
|
||||||
|
|
||||||
// Some dialogs should be destroyed when they become invisible.
|
// Some dialogs should be destroyed when they become invisible.
|
||||||
if (destroyOnInvisible) {
|
if (destroyOnInvisible) {
|
||||||
destroy()
|
destroy()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue