Merge remote-tracking branch 'origin/release' into stable

Change-Id: Ifce0bd8b87bc58a4708b7e682a27aaeaba9fbd53
Fix TableView scrolling problem

TableView was specifying its content width based on item rows' width.
Item rows get dynamically loaded and destroyed while scrolling, and it
sometimes applied a width of a half-(de)constructed item row. That made
the horizontal scrollbar jump to the beginning. This patch makes
TableView use header row's (static) width for specifying the content
width.

Task-number: QTBUG-34344
Change-Id: I797f0f5d294fbb8c95b2836f9aec0dc14c32bc6b
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Bump MODULE_VERSION to 5.2.1

Change-Id: Ica5c8a62a6b4ac522530431b387a4aedb0f75d4f
Reviewed-by: Matti Paaso <matti.paaso@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Merge remote-tracking branch 'origin/release' into stable

Change-Id: I470ff77e4a52f37263c8f0d9bf789f10c643d659
ComboBox: Call resolveTextValue() after any model change

Particularly if the nature of the model has changed (e.g., from null to array).

Task-number: QTBUG-34936
Change-Id: If07690a8836dcd786ed7a32afda1e344d048d31f
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Make TextFieldStyle and SpinBoxStyle respect font size

This makes both the controls respect a custom font size.
Before this patch these controls would only support the
global application font.

Task-number: QTBUG-34750
Change-Id: I200a14adba5b75088ab54ba691430330d9226ada
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Docs: add missing \since 5.2 to TextFieldStyle::renderType

Change-Id: I1a8691a2ef06cc188be11e2f6d04973f9e1f9270
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Fix disabled text color of an editable ComboBox

Change-Id: I2b38fa17434796be65a88d7c8d14ff94a7e2b233
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
TextField: Fix binding loop for property font

Change-Id: I752595495a3cb1347eb5f43dcf8ff36044a02e02
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Revise main() in examples

Replace the inconvenient QT_QUICK_CONTROLS_EXAMPLE_MAIN macro with a
simpler macro that merely defines the actual application type. This way
it's easier to do tweaks to main() when for example testing a different
application font size. Moreover, browsing the example code becomes more
convenient (especially online).

Task-number: QTBUG-35083
Change-Id: I8203816a9112bf29b4661baa86bf4a196554db05
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Merge remote-tracking branch 'origin/release' into stable

Change-Id: I1b4f7508ead5631abb70b4cdf29d6efa05f33b5b
SpinBox: attempt to fixup the input as appropriate

So for example "-0", which is a valid intermediate value, becomes
"0" when the spinbox is accepted (enter) or it loses focus.

Task-number: QTBUG-34774
Change-Id: Ie153294755aae2bf94ba1cb53c40a8fc5f1f5862
Reviewed-by: Liang Qi <liang.qi@digia.com>
Make scrolling on combobox work

Handles mouse scrolling event over combobox - scrolling up does the same
as pressing up arrow and scrolling down equals pressing down arrow.

Change-Id: I67adef46f201c0d4c88dabd5a717effc8f1e909d
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Fix disabled text color of TextArea

Change-Id: I5d09aa0da0675bce961f6445982cae16b894dbf1
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Update ScrollView documentation to be valid QML

Change-Id: Ie78468f6e001e67467175cd39bd4db1bd6b2dbbf
Reviewed-by: Martin Klapetek <mklapetek@kde.org>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Make slider's style react to mouse hover

Paints the hover highlight around the slider handle when mouse hovers
it.

Change-Id: I883d5c5b97b0542a36e796ce6a07398ab67e94bd
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Fix slider keyboard shortcuts in vertical orientation

Change-Id: Ib886a4bc9254d8e9c91ae52e927e651200b455a4
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Make StatusBar and ToolBar focus scopes

The problem is that the content item of both these controls have
the focus property set to true. This property will then affect the
implicit focus logic and should be protected by a focusscope.

Currently adding a ToolBar or StatusBar to an application could
result in this content item grabbing focus implicitly even if the
application only sets focus: true on a single item.

Task-number: QTBUG-34713
Change-Id: I94cb79d25e4cfd727915f5b5ab612ad5c0132db7
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
gallery: run particles only when visible

Change-Id: I7c0f5565161719905e973d3fd1a75b3c9d8a4007
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Don't animate the busy indicator when it is not showing.

Change-Id: Ia53d8d46e0397ab94048c85245997be63960dc67
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>