From 22032e58dd2ef1934e7fe7414dc42ca60b6acf47 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Tue, 17 Sep 2019 23:29:26 -0700 Subject: messaging: add initial compose message page Add initial support for sending SMS messages. Along with support for double clicking a message to autofill recipient field. Bug-AGL: SPEC-2566 Change-Id: I214c2250f90d939c95b5e380272b37c0ba8dad64 Signed-off-by: Matt Ranostay --- app/Notification.qml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'app/Notification.qml') diff --git a/app/Notification.qml b/app/Notification.qml index 6be41ff..f283b76 100644 --- a/app/Notification.qml +++ b/app/Notification.qml @@ -27,10 +27,14 @@ Item { anchors.left: parent.left anchors.right: parent.right - ImageButton { - padding: 10 - offImage: '../images/HMI_Settings_X.svg' - onClicked: notificationModel.remove(index) + Image { + id: button + scale: 0.5 + source: '../images/HMI_Settings_X.svg' + MouseArea { + anchors.fill: button + onClicked: notificationModel.remove(index) + } } Label { text: '' + name + '' @@ -46,4 +50,18 @@ Item { wrapMode: Text.WordWrap } } + + MouseArea { + anchors.fill: parent + propagateComposedEvents: true + onClicked: { + mouse.accepted = false + } + onDoubleClicked: { + if (number) { + bar.setCurrentIndex(1) + compose.setNumber(number) + } + } + } } -- cgit 1.2.3-korg