QQuickPopupWindow: Use actual item size as content size

Using the children rect size was a mistake, particularly when using
Instantator in a Menu.

Task-number: QTBUG-40221
Change-Id: I6efe9aad617a7b0adbea0bb96bf843c5c1779131
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Make the default style "Base" when built without widgets support

It is possible to have qtwidgets installed but qtquickcontrols built
without a dependency to qtwidgets.

Change-Id: Ic6f640e352984d38d9020011078fe061ff46acac
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Doc: Updated the Calendar example documentation

Added more information about what the example does and how
Also updated the screenshot of the example.

Task-number: QTBUG-37203
Change-Id: I20f9e5ed864b2a1f030736ad45c495118c19bf55
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Fix tooltip position when used with QQuickWidget

Task-number: QTBUG-39878
Change-Id: I1df4e7b7b17a11234e2569d6502aa9618a590acd
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
QtQuick.Dialogs FontDialog: fix a binding loop issue

Change-Id: Ie57b3900bd5a17fa4a05af945eeea98d2b12ffbd
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Replace usage of Item.window with Window attached property

Change-Id: Ic33d645ba384697f761540e277507ad56617e2fb
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
TextField: Remove placeholder text fade out transition

It's disturbing for the user that is focusing in the text she's typing.
The transition feels like the placeholder text is going to stay for a
fraction of a second, which is an unnecessary feeling.

Change-Id: I44589486dcb3ca363221ed4dabb1752e9e3b6550
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Fix the nine patch node factory function call

Change-Id: I85620159f29ccc3eb375d845da7e4bef996c8ff7
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Replace usage of Item.window with OpenGLInfo attached property

Change-Id: I53224e2abb2820f3fc472b8b4b42a4cac59d79f5
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Merge remote-tracking branch 'origin/5.3' into 5.4

Change-Id: I9253c87c3bd54204401070f492c7590166be0fe3
QtQuick.Dialogs FileDialog: default mode is ExistingFile

Previously did not sync the mode with the state of the selectExisting
property on construction.
(cherry-picked from qtdeclarative/fa5db4201945565bd2c5ff42ab233f497666003f)

Task-number: QTBUG-35877
Change-Id: Ifb630fb51c463025ec2f6a1932714f354552c234
Reviewed-by: Liang Qi <liang.qi@digia.com>
Merge remote-tracking branch 'origin/5.4' into dev

Change-Id: Ic56596f23496f5918104d1f024bdce93ede7119c
QtQuick.Dialogs FontDialog: support keyboard navigation

[ChangeLog][QtQuick.Dialogs] FontDialog: support keyboard navigation

Task-number: QTBUG-39365
Change-Id: Ic4cdbe6643be2fc66dbb23873e780a1f1f88a410
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Fix tooltip positioning

The previous fix worked only properly when the QQuickWidget was located in
the top-left corner of the window. With bigger offsets the tooltips were off.

Task-number: QTBUG-39878
Change-Id: Ia25194175aa9f9daa9c7132fc776d4b2fa874c26
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Dialog: do not emit signals twice when a button is clicked

buttonClicked() is public API, whereas click(button, role) is called
when a button is clicked.  So there is no need to have buttonClicked()
connect to anything internally.

Task-number: QTBUG-40613
Change-Id: I25872d532ba77b4d708a2c25b31b6064fd5da599
Reviewed-by: Liang Qi <liang.qi@digia.com>
Dialogs: buttonless fully-filled dialog example

The default property "contentItem" is normally the parent of the
added content, but you can set the content directly into the property
to avoid having any buttons or margins.

Task-number: QTBUG-38056
Change-Id: Ie0e96969b3e35f079b29a9f3f57eaaf16236d4c1
Reviewed-by: Liang Qi <liang.qi@digia.com>
Dialog: initialize enabled and clicked buttons

When the dialog becomes visible, no button has been clicked yet: we
are waiting for the user to do that.  Failure to initialize
m_clickedButton made the logic in accept() and reject() unreliable:
accept() does not imply OK unless we are sure the user did not click
any other button, and the same with reject() implying Cancel.

Change-Id: I340c18bd0fca6cc9a7274c1063882de425444326
Reviewed-by: Liang Qi <liang.qi@digia.com>
Update license headers and add new license files

- Renamed LICENSE.LGPL to LICENSE.LGPLv21
- Added LICENSE.LGPLv3 & LICENSE.GPLv2
- Removed LICENSE.GPL

Change-Id: I470909ba0980db33ab551790d619c59a35978590
Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
Dialogs must know when they are closed by the operating system

The dialog cannot be opened again if it does not know that it was
closed.  So whenever there is a native window, the visibleChanged signal
must be connected.

Task-number: QTBUG-40855
Change-Id: I0726b7568937a19deba067d43ce72b0579f7c4c5
Reviewed-by: Liang Qi <liang.qi@digia.com>
Children of ContentItem must be visible in order to be evaluated.

Task-number: QTBUG-38469
Change-Id: Ie097c0b59f3453de63cc3c997773289fbafde48f
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>