diff options
author | Bernd Weimer <bernd.weimer@pelagicore.com> | 2020-03-13 17:53:13 +0100 |
---|---|---|
committer | Bernd Weimer <bernd.weimer@pelagicore.com> | 2020-05-27 14:08:28 +0000 |
commit | df0d5e4730a85fd7ce13d10aced5fdb3ae7feef9 (patch) | |
tree | 23faf7bb0bd94b062ac00a2c6d5dd5641c9408c4 /examples/applicationmanager/application-features | |
parent | 042476a1c1d18c5838791fc71e6dbb1d0d7e8b4e (diff) |
Define functions in QML Connections explicitly
Don't use implicitly defined handler, since this is deprecated from
Qt 5.15. This works since Qt 5.14 only, but we are tied to 5.15,
anyways.
Change-Id: I82e66b0c6186237757e060bfb21d86c91ec8498b
Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'examples/applicationmanager/application-features')
-rw-r--r-- | examples/applicationmanager/application-features/system-ui/main.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/applicationmanager/application-features/system-ui/main.qml b/examples/applicationmanager/application-features/system-ui/main.qml index 83c1c408..c81a73bf 100644 --- a/examples/applicationmanager/application-features/system-ui/main.qml +++ b/examples/applicationmanager/application-features/system-ui/main.qml @@ -158,7 +158,7 @@ Window { Connections { target: window - onContentStateChanged: { + function onContentStateChanged() { if (window.contentState === WindowObject.NoSurface) topLevelWindowsModel.remove(model.index, 1); } @@ -180,7 +180,7 @@ Window { window: model.window Connections { target: model.window - onContentStateChanged: { + function onContentStateChanged() { if (model.window.contentState === WindowObject.NoSurface) popupsModel.remove(model.index, 1); } @@ -198,7 +198,7 @@ Window { Connections { target: WindowManager - onWindowAdded: { + function onWindowAdded(window) { var model = window.windowProperty("type") === "pop-up" ? popupsModel : topLevelWindowsModel; model.append({"window":window}); } @@ -206,7 +206,7 @@ Window { Connections { target: ApplicationManager - onApplicationRunStateChanged: { + function onApplicationRunStateChanged(id, runState) { if (runState === Am.NotRunning && ApplicationManager.application(id).lastExitStatus === Am.CrashExit) { ApplicationManager.startApplication(id); |