mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
more work on popups
This commit is contained in:
parent
9cc386b5b5
commit
ec04d07e24
6 changed files with 134 additions and 125 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import QtQuick
|
||||
import qs.widgets
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
|
@ -46,8 +47,9 @@ Item {
|
|||
implicitWidth: children[0].implicitWidth
|
||||
}
|
||||
|
||||
required property var popup
|
||||
required property var popup
|
||||
required property var owner
|
||||
property bool centered: false
|
||||
property bool show: false
|
||||
|
||||
signal closed
|
||||
|
|
@ -61,10 +63,4 @@ Item {
|
|||
velocity: 5
|
||||
}
|
||||
}
|
||||
|
||||
function snapOpacity(opacity: real) {
|
||||
opacityAnimation.enabled = false;
|
||||
targetOpacity = opacity;
|
||||
opacityAnimation.enabled = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue