diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2017-03-13 16:05:47 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2017-03-17 13:02:24 +0000 |
commit | 49591f0833a5bd7983b1f68a17df2f033f9e9817 (patch) | |
tree | ebd8db15b17a664921e901828b192f3f51321326 /imports | |
parent | 21a5759d892fe3f6356b334a4069bdcb83f42688 (diff) | |
download | neptune-ui-49591f0833a5bd7983b1f68a17df2f033f9e9817.tar.gz |
Add an WindowOverview page
Displays all windows in a grid and closes the applications on
a press on the X
Change-Id: Ie88e2a6ad1225cf710a30fe72ea2d0b667b26e95
Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com>
Diffstat (limited to 'imports')
-rw-r--r-- | imports/system/models/ApplicationManagerInterface.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/imports/system/models/ApplicationManagerInterface.qml b/imports/system/models/ApplicationManagerInterface.qml index 147e813..62bb6e8 100644 --- a/imports/system/models/ApplicationManagerInterface.qml +++ b/imports/system/models/ApplicationManagerInterface.qml @@ -50,6 +50,7 @@ QtObject { signal applicationSurfaceReady(Item item, bool isMinimized) signal releaseApplicationSurface(Item item) + signal applicationSurfaceLost(Item item) signal unhandledSurfaceReceived(Item item) // Cluster signals @@ -72,6 +73,10 @@ QtObject { WindowManager.windowPropertyChanged.connect(windowPropertyChanged) } + function appIdFromWindow(item) { + return WindowManager.get(WindowManager.indexOfWindow(item)).applicationId + } + function windowReadyHandler(index, item) { var isMapWidget = (WindowManager.windowProperty(item, "windowType") === "widgetMap") var isClusterWidget = (WindowManager.windowProperty(item, "windowType") === "clusterWidget") @@ -149,6 +154,8 @@ QtObject { //For special windows (cluster, widgets) we don't have a closing anmiation, close them directly if (type === "ivi") { + root.applicationSurfaceLost(item) + //If the item is in the closing state the closing animation hasn't been played yet and we need to wait until it is finished if (item.state === "closing" ) { itemsToRelease.push(item) |