summaryrefslogtreecommitdiffstats
path: root/app/Notification.qml
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-09-17 23:55:48 -0700
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-10-04 21:14:55 +0000
commit4ab3093e029628fbd1ca73891c81373be884e85f (patch)
tree3e72a0021d377d2542299a02fa612b7b6f09e1dc /app/Notification.qml
parente6ed48622bda295103042f56772561c381c8f3a1 (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