mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-20 21:28:07 +00:00
Remove Call and notices logs from db Delete empty chat rooms after requesting it Option of showing/hidding empty chat rooms Many fixes on notifications count, imdn states, synchronizations behaviors, mouse cursor, etc. Fix crashes Fix timeline times
59 lines
1.2 KiB
QML
59 lines
1.2 KiB
QML
import QtQuick 2.7
|
|
|
|
import Common 1.0
|
|
import Linphone.Styles 1.0
|
|
|
|
// =============================================================================
|
|
|
|
DesktopPopup {
|
|
id: notification
|
|
|
|
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.color
|
|
height: overrodeHeight || NotificationStyle.height
|
|
width: NotificationStyle.width
|
|
|
|
border {
|
|
color: NotificationStyle.border.color
|
|
width: NotificationStyle.border.width
|
|
}
|
|
|
|
Item {
|
|
id: content
|
|
|
|
anchors.fill: parent
|
|
}
|
|
|
|
Icon {
|
|
id: iconSign
|
|
|
|
anchors {
|
|
left: parent.left
|
|
top: parent.top
|
|
}
|
|
|
|
iconSize: NotificationStyle.iconSize
|
|
}
|
|
}
|
|
}
|