linphone-desktop/Linphone/view/Item/Notification/Notification.qml
Julien Wadel 7ff6989614 Fix crash on logger (instance lost).
Add Call model.
Start audio call from Utils.
Simplify VariantObject to use only setValue().
Add notifications.
2023-11-20 08:52:31 +00:00

57 lines
961 B
QML

import QtQuick 2.7
import Linphone
// =============================================================================
DesktopPopup {
id: notification
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: "#FFFFFF"
height: overrodeHeight || 120
width: 300
border {
color: "#A1A1A1"
width: 1
}
Item {
id: content
anchors.fill: parent
}
Image {
id: iconSign
anchors {
left: parent.left
top: parent.top
}
}
}
}