linphone-desktop/linphone-app/ui/modules/Linphone/Notifications/NotificationBasic.qml
Julien Wadel 8ecd1bc32c - Add History view to show all call logs
- Manage missing call count. Reset call notifications when: App get focus and the logs are shown, and when we click on a log
- Refactoring of MouseArea to centralize cursor shapes
- Update SDK
2020-10-07 16:32:25 +02:00

43 lines
991 B
QML

import QtQuick 2.7
import Common 1.0
import Linphone.Styles 1.0
// =============================================================================
Notification {
id: notification
property string message
property var handler: (function () {})
overrodeHeight: NotificationBasicStyle.overrodeHeight
// ---------------------------------------------------------------------------
Loader {
active: Boolean(notification.message)
anchors {
fill: parent
leftMargin: NotificationBasicStyle.leftMargin
rightMargin: NotificationBasicStyle.rightMargin
}
sourceComponent: Text {
anchors.fill: parent
color: NotificationBasicStyle.message.color
font.pointSize: NotificationBasicStyle.message.pointSize
text: notification.message
verticalAlignment: Text.AlignVCenter
wrapMode: Text.Wrap
MouseArea {
anchors.fill: parent
onClicked: notification._close(notification.handler)
}
}
}
}