diff options
author | Egor Nemtsev <enemtsev@luxoft.com> | 2020-07-22 15:00:36 +0300 |
---|---|---|
committer | Egor Nemtsev <enemtsev@luxoft.com> | 2020-07-22 14:15:06 +0000 |
commit | 5a197ab4fa85ca5368d894e9db0acd1e9d44cc5e (patch) | |
tree | cafaddaa0da47aec5e5aa1c4c4e8d56d3baaffc7 /imports_system/system/models/notification/NotificationModel.qml | |
parent | 4e8b40ef55f48bca2c633efe93693d8be8431a7d (diff) |
[sysui] replace onFoo handlers for Connections
- Connections { target: someTarget; onFoo: {} } is now deprecated
and warning is generated. onFoo should be changed to
'function onFoo(params)'
Fixes: AUTOSUITE-1597
Change-Id: I87d93939fa821c53bdf26478baa5444387b1b20e
Reviewed-by: Grigorii Zimin <gzimin@luxoft.com>
Diffstat (limited to 'imports_system/system/models/notification/NotificationModel.qml')
-rw-r--r-- | imports_system/system/models/notification/NotificationModel.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/imports_system/system/models/notification/NotificationModel.qml b/imports_system/system/models/notification/NotificationModel.qml index 32841184..ba2eca9c 100644 --- a/imports_system/system/models/notification/NotificationModel.qml +++ b/imports_system/system/models/notification/NotificationModel.qml @@ -46,11 +46,11 @@ QtObject { readonly property Connections notificationManagerConnection: Connections { target: root.model - onNotificationAdded: { + function onNotificationAdded() { root.notificationAdded(); } - onNotificationAboutToBeRemoved: { + function onNotificationAboutToBeRemoved() { root.notificationRemoved(); } } |