Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
47562185f1 | ||
|
|
4f49575069 | ||
|
|
8c6662871a |
@@ -42,6 +42,14 @@ Rectangle {
|
||||
root.dismissed(root.notification, dismiss)
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: root.notification
|
||||
function onClosed(reason){
|
||||
// It is known that it can be triggered twice and delete multiple Index but since it is only temporary display and the chance is low it is ignored
|
||||
root.closeNotification(false)
|
||||
}
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
id: mouseArea
|
||||
anchors.fill: parent
|
||||
@@ -63,14 +71,14 @@ Rectangle {
|
||||
border.width: Config.border_width
|
||||
border.color: textColor
|
||||
|
||||
MouseArea { // covers cross only, not whole row
|
||||
MouseArea {
|
||||
id: closingMouseArea
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
anchors.margins: Config.spacing // or 10 to match Row margins
|
||||
anchors.margins: Config.spacing
|
||||
|
||||
width: closeIconText.height
|
||||
height: closeIconText.height // Config.screen_height_to_font_small(screen.height) ~12-16
|
||||
width: closeIconText.implicitHeight + Config.spacing
|
||||
height: closeIconText.implicitHeight + Config.spacing
|
||||
|
||||
hoverEnabled: true
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
@@ -91,7 +99,7 @@ Rectangle {
|
||||
color: parent.parent.containsMouse ? Colors.error_fg : textColor
|
||||
}
|
||||
}
|
||||
onClicked: {
|
||||
onClicked: function(mouse){
|
||||
mouse.accepted=true
|
||||
root.closeNotification(true)
|
||||
}
|
||||
@@ -236,7 +244,8 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
onClicked: {
|
||||
onClicked: function(mouse){
|
||||
mouse.accepted=true
|
||||
modelData.invoke()
|
||||
// resident check is allready in .invoke()
|
||||
root.closeNotification(false)
|
||||
@@ -317,7 +326,8 @@ Rectangle {
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
}
|
||||
onClicked: {
|
||||
onClicked: function(mouse){
|
||||
mouse.accepted=true;
|
||||
console.log("[NotificationBodyInlineReply]: Pressed SEND:", inlineReplyTextField.text)
|
||||
inlineReplyRectangle.sendReply(inlineReplyTextField.text)
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ Item {
|
||||
notificationSound.play()
|
||||
}
|
||||
|
||||
// destroy()
|
||||
destroy()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user