From ccbf0560b36515630328be44a20f4fe62eaec531 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Wed, 27 Mar 2013 09:57:59 +0100 Subject: a nested Window automatically becomes transient for its parent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If you declare Window { Window {}} or Window { Item { Window {}}} the inner window will automatically become transient for the outer one. The transient relationship must be set before the inner window becomes visible though, so declaring visible: true doesn't always work, depending on initialization order. It's OK if you assign visible (or call show()) later on when the user needs to see the transient window for the first time. Also added documentation. Change-Id: I888c3b9da6d44d11516227c085bcc12a5ccb5e81 Reviewed-by: Shawn Rutledge Reviewed-by: Jan Arve Sæther --- dist/changes-5.1.0 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dist') diff --git a/dist/changes-5.1.0 b/dist/changes-5.1.0 index cee8d4b382..4333c4a8dd 100644 --- a/dist/changes-5.1.0 +++ b/dist/changes-5.1.0 @@ -32,6 +32,9 @@ Third party components * Important Behavior Changes * **************************************************************************** + - A Window declared nested inside another Item or Window automatically + becomes transient for (centered upon) its parent's window, if x and y + were not explicitly specified **************************************************************************** * Library * -- cgit v1.2.3