Index: sources/gui/qml/dialogs/NotificationDialog.qml =================================================================== diff -u -reedecdb4324b51307e4cf94f782d05591d6ceba9 -r56e378f7504701b9e9a9dccaf205aef2fd52c58e --- sources/gui/qml/dialogs/NotificationDialog.qml (.../NotificationDialog.qml) (revision eedecdb4324b51307e4cf94f782d05591d6ceba9) +++ sources/gui/qml/dialogs/NotificationDialog.qml (.../NotificationDialog.qml) (revision 56e378f7504701b9e9a9dccaf205aef2fd52c58e) @@ -1,14 +1,15 @@ /*! * * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. - * \copyright \n - * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, \n - * IN PART OR IN WHOLE, \n - * WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. \n + * \copyright + * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN + * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * - * \file NotificationDialog.qml - * \date 2020/06/15 - * \author Peter Lucia + * \file NotificationDialog.qml + * \author (last) Behrouz NematiPour + * \date (last) 20-Aug-2020 + * \author (original) Peter Lucia + * \date (original) 02-Jun-2020 * */ @@ -24,6 +25,8 @@ * \brief Contains the PowerOff Dialog Implementation */ ModalDialog { id : _root + contentItem.objectName: "_NotificationDialog" // SquishQt + property alias titleText : _title.text; property alias description : _desc.text; property alias titleBarForeground : _title.color @@ -32,8 +35,9 @@ property alias dismissBtn : _dismiss; property bool isSilenced : false; property int alarmID : -1 - objectName: "_notification_dialog" // SquishQt + visible: description + signal clickedSilence(); signal clickedOkay(); @@ -76,8 +80,9 @@ anchors.centerIn: _titleBar; } } - Text { - id: _desc + + Text { id: _desc + objectName: "_NotificationDialog_Description" color: Colors.textMain font.pixelSize: Fonts.fontPixelButton anchors { @@ -104,6 +109,7 @@ } } + TouchRect { id : _dismiss width: _root.width / 3; text.text: qsTr("SILENCE")