summaryrefslogtreecommitdiffstats
path: root/app/Notification.qml
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-09-17 23:55:48 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-09-18 00:20:15 -0700
commit03fe8255d0ab45019abe1b9817c514af3a8d3442 (patch)
tree3e72a0021d377d2542299a02fa612b7b6f09e1dc /app/Notification.qml
parente3f113d6f0f8c86edd908e0754d5095fcd86096e (diff)
messaging: allow messages to be closed in Alert screen
Bug-AGL: SPEC-2566 Change-Id: I882061af5a9d4feef41f7d48383dd4088f033f2e Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/Notification.qml')
-rw-r--r--app/Notification.qml7
1 files changed, 7 insertions, 0 deletions
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: '<b>' + name + '</b>'
font.pixelSize: 42