Notification: remove some logging, implement #223
This commit is contained in:
parent
a5fc9d9ca9
commit
86734f17c4
1 changed files with 11 additions and 14 deletions
|
|
@ -108,6 +108,17 @@ Variants {
|
||||||
property real opacityValue: 0.0
|
property real opacityValue: 0.0
|
||||||
property bool isRemoving: false
|
property bool isRemoving: false
|
||||||
|
|
||||||
|
// Right-click to dismiss
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
acceptedButtons: Qt.RightButton
|
||||||
|
onClicked: {
|
||||||
|
if (mouse.button === Qt.RightButton) {
|
||||||
|
animateOut()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Scale and fade-in animation
|
// Scale and fade-in animation
|
||||||
scale: scaleValue
|
scale: scaleValue
|
||||||
opacity: opacityValue
|
opacity: opacityValue
|
||||||
|
|
@ -259,15 +270,6 @@ Variants {
|
||||||
|
|
||||||
property var notificationActions: model.rawNotification ? model.rawNotification.actions : []
|
property var notificationActions: model.rawNotification ? model.rawNotification.actions : []
|
||||||
|
|
||||||
Component.onCompleted: {
|
|
||||||
console.log("Actions row created, rawNotification:", model.rawNotification)
|
|
||||||
if (model.rawNotification) {
|
|
||||||
console.log("Actions:", model.rawNotification.actions)
|
|
||||||
console.log("Actions length:",
|
|
||||||
model.rawNotification.actions ? model.rawNotification.actions.length : "null")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: actionsRow.notificationActions
|
model: actionsRow.notificationActions
|
||||||
|
|
||||||
|
|
@ -288,12 +290,7 @@ Variants {
|
||||||
outlined: false
|
outlined: false
|
||||||
customHeight: 32 * scaling
|
customHeight: 32 * scaling
|
||||||
|
|
||||||
Component.onCompleted: {
|
|
||||||
console.log("Action button created:", modelData.text, "Display text:", text)
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
console.log("Action clicked:", modelData.text)
|
|
||||||
if (modelData && modelData.invoke) {
|
if (modelData && modelData.invoke) {
|
||||||
modelData.invoke()
|
modelData.invoke()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue