From da835a1346ef5ff97030479712830bb5556de545 Mon Sep 17 00:00:00 2001 From: Dominik Holland Date: Thu, 6 Oct 2016 17:10:26 +0200 Subject: Added support for stacking windows in the LaunchController It's now possible to start multiple applications and stack the windows on each other. If a window is currently visible and an second application was started, the new window will be stacked on top. The back button will reveal the previous window again. If an window in the stack which is not the current window is closed. The window is removed from the stack without animations Change-Id: I0d2b0010ffe4ec07bb075d53c5ba524b52d55a7c Reviewed-by: Nedim Hadzic --- imports/system/models/ApplicationManagerInterface.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'imports') diff --git a/imports/system/models/ApplicationManagerInterface.qml b/imports/system/models/ApplicationManagerInterface.qml index ea591b4..b8b4017 100644 --- a/imports/system/models/ApplicationManagerInterface.qml +++ b/imports/system/models/ApplicationManagerInterface.qml @@ -49,7 +49,7 @@ QtObject { property var itemsToRelease: [] signal applicationSurfaceReady(Item item, bool isMinimized) - signal releaseApplicationSurface() + signal releaseApplicationSurface(Item item) // Cluster signals signal clusterWidgetReady(string category, Item item) @@ -133,14 +133,14 @@ QtObject { function windowPropertyChanged(window, name, value) { //print(":::LaunchController::: WindowManager:windowPropertyChanged", window, name, value) if (name === "visibility" && value === false ) { - root.releaseApplicationSurface() + root.releaseApplicationSurface(window) } } function windowClosingHandler(index, item) { var type = windowTypes[item] if (type === "ivi") { // start close animation - root.releaseApplicationSurface() + root.releaseApplicationSurface(item) } } @@ -152,7 +152,7 @@ QtObject { //If the item is visible the closing application hasn't been played yet and we need to wait until it is finished if (item.visible) { itemsToRelease.push(item) - root.releaseApplicationSurface() + root.releaseApplicationSurface(item) } else { WindowManager.releaseWindow(item) } -- cgit v1.2.3