Compare commits
No commits in common. "427aeb438ccad5d843f2d27202aca58ee8b9db8b" and "03c545c9d1107bcd10a16a247361349de2bf5aa1" have entirely different histories.
427aeb438c
...
03c545c9d1
3 changed files with 3 additions and 14 deletions
|
|
@ -97,8 +97,8 @@ PanelWindow {
|
||||||
Item {
|
Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.topMargin: 3
|
anchors.topMargin: 3
|
||||||
anchors.leftMargin: 6
|
anchors.leftMargin: Math.max(M.Theme.barPadding, M.Theme.screenRadius)
|
||||||
anchors.rightMargin: 6
|
anchors.rightMargin: Math.max(M.Theme.barPadding, M.Theme.screenRadius)
|
||||||
|
|
||||||
// ---- center (declared first so left/right can anchor to it) ----
|
// ---- center (declared first so left/right can anchor to it) ----
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
|
|
||||||
|
|
@ -63,14 +63,6 @@ PanelWindow {
|
||||||
_entered = true;
|
_entered = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
|
||||||
target: M.NotifService
|
|
||||||
function onPopupExpiring(notifId) {
|
|
||||||
if (notifId === popupItem.modelData.id)
|
|
||||||
popupItem.animateDismiss(false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Behavior on y {
|
Behavior on y {
|
||||||
enabled: popupItem._entered
|
enabled: popupItem._entered
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
|
|
|
||||||
|
|
@ -105,15 +105,12 @@ QtObject {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Signal popups to animate out before removal
|
|
||||||
signal popupExpiring(var notifId)
|
|
||||||
|
|
||||||
property Component _expireTimer: Component {
|
property Component _expireTimer: Component {
|
||||||
Timer {
|
Timer {
|
||||||
property var _notifId
|
property var _notifId
|
||||||
running: true
|
running: true
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
root.popupExpiring(_notifId);
|
root.dismissPopup(_notifId);
|
||||||
destroy();
|
destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue