a nested Window automatically becomes transient for its parent
authorShawn Rutledge <shawn.rutledge@digia.com>
Wed, 27 Mar 2013 08:57:59 +0000 (09:57 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 10 Apr 2013 19:20:08 +0000 (21:20 +0200)
commitccbf0560b36515630328be44a20f4fe62eaec531
treebb67970cb1cd91c42186914bb1fa6d4a0594ea31
parent8190355557c13bba836cef49585556f0c823f672
a nested Window automatically becomes transient for its parent

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 <shawn.rutledge@digia.com>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
dist/changes-5.1.0
src/quick/items/qquickitem.cpp
src/quick/items/qquickitem.h
src/quick/items/qquickwindow.cpp
src/quick/items/qquickwindow.h
src/quick/items/qquickwindow_p.h
tests/auto/quick/qquickmousearea/tst_qquickmousearea.cpp