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 +++++ app/images/HMI_Settings_X.svg | 72 +++++++++++++++++++++++++++++++++++++++++++ app/images/images.qrc | 1 + 3 files changed, 80 insertions(+) create mode 100644 app/images/HMI_Settings_X.svg 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 diff --git a/app/images/HMI_Settings_X.svg b/app/images/HMI_Settings_X.svg new file mode 100644 index 0000000..5ad9479 --- /dev/null +++ b/app/images/HMI_Settings_X.svg @@ -0,0 +1,72 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/app/images/images.qrc b/app/images/images.qrc index 2a3d89d..801b57e 100644 --- a/app/images/images.qrc +++ b/app/images/images.qrc @@ -6,5 +6,6 @@ ic_call_missed_48px.svg ic_call_received_48px.svg ic_call_made_48px.svg + HMI_Settings_X.svg -- cgit 1.2.3-korg