linphone-desktop/linphone-app/ui/modules/Linphone/Notifications/Notification.qml
Julien Wadel ca500317ca Show notifications on all screens
- Fix windows flags for DesktopPopup
- Merge notification creation and show macros
- Store height offset for each screens (key: screen name)
- Create a Visual Root Window for each notifications
- Put each Visual Root Windows behind its notification to get visually only one entity
- Bind each Visual Root Window to a Screen
- Propagate events between visual objects in order to use only one
- Add open/close events
- Add missing anchors
- Avoid using window as a keyword
2020-05-08 23:34:42 +02:00

53 lines
957 B
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: ({})
property int overrodeHeight
default property alias _content: content.data
signal deleteNotification (var notification)
function _close (cb) {
if (cb) {
cb()
}
deleteNotification(notification)
}
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
}
}
}