Bump MODULE_VERSION to 5.2.2

Change-Id: I148e6396627239765059467605eda5a29761942e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Don't lie in the docs.

It seems we forgot to update the documentation when the default spacing
got changed to 5.

Change-Id: Id76ebd3d75ec5c0d5806aab65723d046c0f49864
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Support negative layout spacings (do not assert)

This tests
* default spacing
* explicit positive spacing
* negative spacings

Negative spacings that causes the layout to shrink down to 0 or
a negative spacing are not supported.
(But make sure they don't crash the whole engine)

Task-number: QTBUG-35741

Change-Id: I69521dffb03c35a63db37ab51a2e99152d88272b
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Fix typo in property in ComboBoxStyle

drowDownButtonWidth seems to be a typo in an exposed property name.

In order to keep compatibility an (undocumented) alias is added.

Change-Id: I2ab04b3518325e339c31cf6f403c488256a4aabe
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Fix TextField::placeholderText docs

For usability reasons the placeholder text is kept always visible when
the control is empty, even when focused.

Task-number: QTBUG-36303
Change-Id: I79733b0cf2a48807fb45d5697399f183c2b97f94
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Remove unused white rectangle causing drawing issues

The spinbox has a white rectangle which overlaps the frames with some
styles (eg. oxygen). However the Rectangle itself serves no real purpose
and so it's removed.

Change-Id: I37a6862dfd8ac21fb24b54261fa7d7ab54aa23c7
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Fix implicit width for SpinBox

This patch ensures that we take the minimum width of the SpinBox
into account when getting the size from the style item.

The patch still relies on the height of the TextField since we
want to ensure that they keep similar height and the existing
spinbox code behaves somewhat erratic.

Task-number: QTBUG-36283
Change-Id: I50d14e5afb2576548c381e7f70063dfcb727e7d6
[ChangeLog][QtQuickControls]Fixed implicit width for SpinBox
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Fix StackView documentation

The extra "property Component" breaks the examples.

Task-number: QTBUG-35864
Change-Id: I1317f9a2ce42f4d9e4a03ecc3b85286b1eb3e855
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Controls: Fixed support for Keys attached property on controls allowing text input

By forwarding key events from the internal control.

It includes TextField, TextArea, ComboBox, SpinBox. The key events from
internal are Keys.forwardTo controls, then user could customize their
own behavior for those controls.

Autotest are included.

[ChangeLog][QtQuickControls] Fixed support for Keys attached property on
controls allowing text input, by forwarding key events from the internal
control.

Task-number: QTBUG-33493
Task-number: QTBUG-34101
Task-number: QTBUG-35763
Change-Id: I00ea131160e55048b34fe0713e1ee02ff9472f05
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Allow size hint changes during a rearrange.

Previously, we marked the layout as not dirty straight after a
rearrange was done. However, in the case of when a size hint changed
during a rearrange that would block the pending rearrange (since it
only perform the actual rearrange if its dirty).

Instead, mark the layout as not dirty *before* the rearrange.

This will allow bindings such as
  implicitWidth: height
to execute the pending rearrange.
(Although such bindings are not encouraged)

Task-number: QTBUG-36169
Change-Id: I75bd821a0ca4302026bd5dac01287ca3359d471b
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Merge remote-tracking branch 'origin/stable' into wip/tizen

Change-Id: I6a4b4e546a726b2719f607da7219f1f40cba1167