QQuickView with the default constructor doesn't show any window decorations.
authorAlexis Menard <alexis.menard@openbossa.org>
Mon, 5 Mar 2012 14:32:52 +0000 (11:32 -0300)
committerQt by Nokia <qt-info@nokia.com>
Wed, 7 Mar 2012 13:25:16 +0000 (14:25 +0100)
commit51493a03ba60f60b735eb25f2dc3bedd1d8ed592
treef1b6af11bcbbc51618b5822a276c2a1dbf86d9c0
parentee474ac834fa78e0ccdb65946abdd8c80f048758
QQuickView with the default constructor doesn't show any window decorations.

The default parameter takes a 0 which is propagated to the window platform
which sets it to 0. QWidget have a method called adjustFlags which takes
care of adding QWindow when necessary. There is no such check in QWindow
or the platform plugin for QPA. The default flag of QWindow is Qt::Window
but in that case it is overiden as QQuickView constructor calls
setWindowFlags(0). Qt::Window as a default parameter is a solution.

Change-Id: Iccbebc5b7e4f094c7fc6dc61b37d9f9622be0237
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/quick/items/qquickview.h