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 /sysui | |
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 'sysui')
-rw-r--r-- | sysui/about/AboutApps.qml | 2 | ||||
-rw-r--r-- | sysui/centerconsole/ApplicationPopup.qml | 2 | ||||
-rw-r--r-- | sysui/centerconsole/ApplicationPopups.qml | 2 | ||||
-rw-r--r-- | sysui/centerconsole/CenterConsoleWindow.qml | 2 | ||||
-rw-r--r-- | sysui/centerconsole/GamePadController.qml | 2 | ||||
-rw-r--r-- | sysui/centerconsole/WidgetDrawer.qml | 2 | ||||
-rw-r--r-- | sysui/home/AddWidgetPopupLoader.qml | 2 | ||||
-rw-r--r-- | sysui/instrumentcluster/ApplicationICWindows.qml | 2 | ||||
-rw-r--r-- | sysui/instrumentcluster/InstrumentClusterWindow.qml | 14 | ||||
-rw-r--r-- | sysui/launcher/EditableGridView.qml | 2 | ||||
-rw-r--r-- | sysui/notification/NotificationCenter.qml | 6 | ||||
-rw-r--r-- | sysui/notification/NotificationToast.qml | 4 | ||||
-rw-r--r-- | sysui/stores/MusicAppRequestsIPCStore.qml | 4 | ||||
-rw-r--r-- | sysui/stores/RootStore.qml | 2 |
14 files changed, 24 insertions, 24 deletions
diff --git a/sysui/about/AboutApps.qml b/sysui/about/AboutApps.qml index af70ff30..efaa7d61 100644 --- a/sysui/about/AboutApps.qml +++ b/sysui/about/AboutApps.qml @@ -86,7 +86,7 @@ Item { Connections { target: applicationModel ignoreUnknownSignals: true - onAppRemoved: { + function onAppRemoved(appInfo) { runningAppsModel.removeAppInfo(appInfo) } } diff --git a/sysui/centerconsole/ApplicationPopup.qml b/sysui/centerconsole/ApplicationPopup.qml index 1d7ea157..45c082f4 100644 --- a/sysui/centerconsole/ApplicationPopup.qml +++ b/sysui/centerconsole/ApplicationPopup.qml @@ -59,7 +59,7 @@ PopupItem { Connections { target: root // reset popup parameters on scale change - onHeightChanged: { + function onHeightChanged() { if ("open" === root.state) { root.originItemX = root.window.windowProperty("originItemX") root.originItemY = root.window.windowProperty("originItemY") diff --git a/sysui/centerconsole/ApplicationPopups.qml b/sysui/centerconsole/ApplicationPopups.qml index ea219edf..5df2a2d4 100644 --- a/sysui/centerconsole/ApplicationPopups.qml +++ b/sysui/centerconsole/ApplicationPopups.qml @@ -60,7 +60,7 @@ Item { Connections { target: model.window - onContentStateChanged: { + function onContentStateChanged() { if (model.window.contentState === WindowObject.NoSurface) { // client has closed his PopupWindow. Animate accordingly. appPopup.close(); diff --git a/sysui/centerconsole/CenterConsoleWindow.qml b/sysui/centerconsole/CenterConsoleWindow.qml index f23966e1..b2d42505 100644 --- a/sysui/centerconsole/CenterConsoleWindow.qml +++ b/sysui/centerconsole/CenterConsoleWindow.qml @@ -88,7 +88,7 @@ Window { , root.store.settingsStore.defaultAutostartApps) readonly property string autorecoverApps: root.store.settingsStore.value("autorecoverApps" , root.store.settingsStore.defaultAutorecoverApps) - onFrameSwapped: { + function onFrameSwapped() { /* The UI is loaded in two steps This is done in order to ensure that something is rendered on the screen as diff --git a/sysui/centerconsole/GamePadController.qml b/sysui/centerconsole/GamePadController.qml index ded6bb1a..9be31f9c 100644 --- a/sysui/centerconsole/GamePadController.qml +++ b/sysui/centerconsole/GamePadController.qml @@ -75,7 +75,7 @@ Item { Connections { target: GamepadManager - onGamepadConnected: { + function onGamepadConnected(deviceId) { gamepad1.deviceId = deviceId } } diff --git a/sysui/centerconsole/WidgetDrawer.qml b/sysui/centerconsole/WidgetDrawer.qml index a9334dc9..41b5f385 100644 --- a/sysui/centerconsole/WidgetDrawer.qml +++ b/sysui/centerconsole/WidgetDrawer.qml @@ -88,7 +88,7 @@ Item { Connections { target: handl.drag - onActiveChanged: { + function onActiveChanged() { if (handl.drag.active) { d.lastX = root.x; d.direction = 0; diff --git a/sysui/home/AddWidgetPopupLoader.qml b/sysui/home/AddWidgetPopupLoader.qml index c619b151..7aac2f23 100644 --- a/sysui/home/AddWidgetPopupLoader.qml +++ b/sysui/home/AddWidgetPopupLoader.qml @@ -57,7 +57,7 @@ Loader { Connections { target: item - onClosed: { + function onClosed() { root.closed(); } } diff --git a/sysui/instrumentcluster/ApplicationICWindows.qml b/sysui/instrumentcluster/ApplicationICWindows.qml index b1b9e149..ca1bcb47 100644 --- a/sysui/instrumentcluster/ApplicationICWindows.qml +++ b/sysui/instrumentcluster/ApplicationICWindows.qml @@ -62,7 +62,7 @@ Item { delegate: QtObject { property var con: Connections { target: model.appInfo - onIcWindowChanged: { + function onIcWindowChanged() { if (model.appInfo.icWindow) { var appInList = false; for (var i = 0; i < applicationICWindowList.count; i++) { diff --git a/sysui/instrumentcluster/InstrumentClusterWindow.qml b/sysui/instrumentcluster/InstrumentClusterWindow.qml index 8a9c0688..8a883117 100644 --- a/sysui/instrumentcluster/InstrumentClusterWindow.qml +++ b/sysui/instrumentcluster/InstrumentClusterWindow.qml @@ -101,17 +101,17 @@ Window { Connections { target: root enabled: root.clusterStore.qsrEnabled - onXChanged: sendWindowStateToSafeUI(); - onYChanged: sendWindowStateToSafeUI(); - onActiveChanged: sendWindowStateToSafeUI(); + function onXChanged() { sendWindowStateToSafeUI(); } + function onYChanged() { sendWindowStateToSafeUI(); } + function onActiveChanged() { sendWindowStateToSafeUI(); } } Connections { target: uiSlot enabled: root.clusterStore.qsrEnabled - onWidthChanged: sendWindowStateToSafeUI(); - onHeightChanged: sendWindowStateToSafeUI(); - onYChanged: sendWindowStateToSafeUI(); - onXChanged: sendWindowStateToSafeUI(); + function onWidthChanged() { sendWindowStateToSafeUI(); } + function onHeightChanged() { sendWindowStateToSafeUI(); } + function onYChanged() { sendWindowStateToSafeUI(); } + function onXChanged() { sendWindowStateToSafeUI(); } } Item { diff --git a/sysui/launcher/EditableGridView.qml b/sysui/launcher/EditableGridView.qml index 6759e6e6..caa3e444 100644 --- a/sysui/launcher/EditableGridView.qml +++ b/sysui/launcher/EditableGridView.qml @@ -164,7 +164,7 @@ Item { Connections { target: model.appInfo - onActiveChanged: { + function onActiveChanged() { if (model.appInfo.active) { appButton.checked = true; } else { diff --git a/sysui/notification/NotificationCenter.qml b/sysui/notification/NotificationCenter.qml index 3be8d38b..a62c4151 100644 --- a/sysui/notification/NotificationCenter.qml +++ b/sysui/notification/NotificationCenter.qml @@ -209,13 +209,13 @@ Item { Connections { target: root.notificationModel - onCountChanged: { + function onCountChanged() { if (root.notificationModel.count === 0) { root.state = "closed"; } } - onNotificationAdded: { + function onNotificationAdded() { state = "incomingNotification"; notificationShowTimer.stop(); var notification = root.notificationModel.model.get(root.notificationModel.count - 1); @@ -226,7 +226,7 @@ Item { notificationShowTimer.start(); } - onNotificationClosed: { + function onNotificationClosed() { root.state = "closed"; } } diff --git a/sysui/notification/NotificationToast.qml b/sysui/notification/NotificationToast.qml index e44f7f9e..142a352c 100644 --- a/sysui/notification/NotificationToast.qml +++ b/sysui/notification/NotificationToast.qml @@ -55,7 +55,7 @@ NotificationItem { Connections { target: root.notificationModel - onNotificationAdded: { + function onNotificationAdded() { var currentNotification = root.notificationModel.model.get(root.notificationModel.count - 1); priv.notificationId = currentNotification.id; root.notificationIcon = currentNotification.icon; @@ -71,7 +71,7 @@ NotificationItem { } } - onNotificationClosed: { + function onNotificationClosed() { priv.notificationId = -1; } } diff --git a/sysui/stores/MusicAppRequestsIPCStore.qml b/sysui/stores/MusicAppRequestsIPCStore.qml index f3c65407..4e54d234 100644 --- a/sysui/stores/MusicAppRequestsIPCStore.qml +++ b/sysui/stores/MusicAppRequestsIPCStore.qml @@ -73,7 +73,7 @@ ApplicationIPCInterface { property var appmanCnx: Connections { target: ApplicationManager - onApplicationAdded: { + function onApplicationAdded(id) { if (id === "com.pelagicore.spotify") { root.spotifyInstalled = true; } @@ -81,7 +81,7 @@ ApplicationIPCInterface { root.webradioInstalled = true; } } - onApplicationAboutToBeRemoved: { + function onApplicationAboutToBeRemoved(id) { if (id === "com.pelagicore.spotify") { root.spotifyInstalled = false; } diff --git a/sysui/stores/RootStore.qml b/sysui/stores/RootStore.qml index e8f6c191..85791d98 100644 --- a/sysui/stores/RootStore.qml +++ b/sysui/stores/RootStore.qml @@ -201,7 +201,7 @@ Store { readonly property Connections instentServerConnection: Connections { target: IntentServer - onDisambiguationRequest: { + function onDisambiguationRequest(requestId, potentialIntents, parameters) { //process "activate-app" intent sent with part of app name (guess-app) as parameter if (potentialIntents.length > 0 && potentialIntents[0].intentId === "activate-app") { var guess_app = parameters["guess-app"]; |