Declarative dialog improvements for the non-Window use case
authorShawn Rutledge <shawn.rutledge@digia.com>
Thu, 18 Apr 2013 10:30:20 +0000 (12:30 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 26 Jun 2013 10:06:20 +0000 (12:06 +0200)
commit4e2153a1d5056249fc31e23890d8c525a3986e1b
tree6fe37d445255bf2baac7a9cc06ae924a01277e48
parenta4754a30abc6f650885cbd20d0419da26a504220
Declarative dialog improvements for the non-Window use case

Platforms like Android and EGL don't support multiple top-level
windows, so we have to avoid trying to use widget-based dialogs
(because a widget dialog on top of a scene graph will result in a
second window), allow the QML dialog to be an Item, and decorate it
to look like a window.

Task-number: QTBUG-31898
Change-Id: I9af049f3265188e8be677a05a8bc6d1699b4cd00
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
examples/quick/shared/Button.qml
src/imports/dialogs/DefaultColorDialog.qml
src/imports/dialogs/DefaultFileDialog.qml
src/imports/dialogs/dialogs.pro
src/imports/dialogs/images/window_border.png [new file with mode: 0644]
src/imports/dialogs/plugin.cpp
src/imports/dialogs/qml/Button.qml
src/imports/dialogs/qml/DefaultWindowDecoration.qml [new file with mode: 0644]
src/imports/dialogs/qml/TextField.qml
src/imports/dialogs/qquickabstractdialog.cpp
src/imports/dialogs/qquickabstractdialog_p.h