linphone-desktop/linphone-app/ui/modules/Linphone/Notifications/Notification.qml
Julien Wadel d69a68c5ca - Keyboard shortcuts:
* 'Ctrl+Shift+W' (or V): accept with video the last incoming call.
    * 'Ctrl+Shift+A': accept without video the last incoming call.
    * 'Ctrl+Shift+D': terminate the last call.
    * 'Ctrl+Shift+E': Enable/disable echo cancellation.
    * 'Ctrl+Shift+L': Unmute/Mute speaker.
    * 'Ctrl+Shift+M': Unmute/Mute microphone.
- Request application focus when hovering a call notification.
- Forbid to calibrate echo cancellation while being in call because it is not supported.
2024-03-11 16:46:31 +01:00

59 lines
1.4 KiB
QML

import QtQuick 2.7
import Common 1.0
import Linphone.Styles 1.0
// =============================================================================
DesktopPopup {
id: notification
property bool selected: false
property alias icon: iconSign.icon
property var notificationData: ({
timelineModel : null
})
property int overrodeHeight
default property alias _content: content.data
signal deleteNotification (var notification)
// Use as an intermediate between signal/slot without propagate the notification var : last signal parameter will be the last notification instance
function deleteNotificationSlot(){
deleteNotification(notification)
}
function _close (cb) {
if (cb) {
cb()
}
deleteNotificationSlot();
}
Rectangle {
color: NotificationStyle.colorModel.color
height: overrodeHeight || NotificationStyle.height
width: NotificationStyle.width
border {
color: notification.selected ? NotificationStyle.selectedBorder.colorModel.color : NotificationStyle.border.colorModel.color
width: notification.selected ? NotificationStyle.selectedBorder.width : NotificationStyle.border.width
}
Item {
id: content
anchors.fill: parent
}
Icon {
id: iconSign
anchors {
left: parent.left
top: parent.top
}
iconSize: NotificationStyle.iconSize
}
}
}