From 03fe8255d0ab45019abe1b9817c514af3a8d3442 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Tue, 17 Sep 2019 23:55:48 -0700 Subject: messaging: allow messages to be closed in Alert screen Bug-AGL: SPEC-2566 Change-Id: I882061af5a9d4feef41f7d48383dd4088f033f2e Signed-off-by: Matt Ranostay --- app/Notification.qml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/Notification.qml') diff --git a/app/Notification.qml b/app/Notification.qml index 1410f8c..6be41ff 100644 --- a/app/Notification.qml +++ b/app/Notification.qml @@ -17,6 +17,7 @@ import QtQuick 2.11 import QtQuick.Layouts 1.11 import QtQuick.Controls 2.4 +import AGL.Demo.Controls 1.0 Item { height: msg.height @@ -25,6 +26,12 @@ Item { id: msg anchors.left: parent.left anchors.right: parent.right + + ImageButton { + padding: 10 + offImage: '../images/HMI_Settings_X.svg' + onClicked: notificationModel.remove(index) + } Label { text: '' + name + '' font.pixelSize: 42 -- cgit 1.2.3-korg