Index: sources/gui/qml/dialogs/Alarm.qml =================================================================== diff -u -r255df1f61af0193b8f2f9630bdf3ce68be0f5e29 -r1a364403f0d1839397054b1eca4d51201b0cf943 --- sources/gui/qml/dialogs/Alarm.qml (.../Alarm.qml) (revision 255df1f61af0193b8f2f9630bdf3ce68be0f5e29) +++ sources/gui/qml/dialogs/Alarm.qml (.../Alarm.qml) (revision 1a364403f0d1839397054b1eca4d51201b0cf943) @@ -33,6 +33,9 @@ property alias dismissBtn : _dismiss; property bool isSilenced : false; + signal pressedSilence(); + signal pressedOkay(); + radius: 0; Rectangle { id: _titleBar; @@ -90,24 +93,17 @@ width: _root.width / 3; text.text: qsTr("OKAY") borderColor: _root.textColor; - property var callback: (function() { - console.debug("Default okay button callback...override needed..."); - }); button.onPressed: { - _root.visible = false; - callback(); + pressedOkay(); + } } TouchRect { id : _dismiss width: _root.width / 3; text.text: qsTr("SILENCE") borderColor: _root.textColor; - property var callback: (function() { - console.debug("Default silence button callback...override needed..."); - }); button.onPressed: { - _root.visible = false; - callback(); + pressedSilence() } } }