Fix retina rendering issues with Qt Quick Controls

We need to scale the texture size since it has twice the pixel
count on retina macs.

Task-number: QTBUG-34922
Change-Id: I38ff316016ccb1e609037598f7107d62b3ba4295
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
TextField: add editingFinished signal

Autotest is included.

Task-number: QTBUG-34780
Change-Id: I19e73ca0c988a9d294aca52f9c0eabb9274f40d7
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
SpinBox: add editingFinished signal

Autotest is included.

Task-number: QTBUG-34780
Change-Id: I2da9d57b409c24cbf1d90ce42da9b4071dd6dac8
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Revert "ApplicationWindow has the WindowFullscreenButtonHint flag by default"

This reverts commit 29d1b0d209ebb267c5a6ac8402c33892c09b8de6.

This patch caused a regression resulting in QTBUG-35049
and should be reverted until we have a better fix.

Change-Id: I76f9fa9859742a63f33757456c64f70183c76178
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Set more window flags to keep Windows from omitting titlebar & buttons

This should not be necessary, but Windows does not treat the missing
Qt::CustomizeWindowHint the same as the other platforms do.

Task-number: QTBUG-35049
Change-Id: I81dc645dc1acf29b6ff4d5fc04f5dd3db94b0133
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@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>
Fix warning printed when using TabView

This fixes the binding loop warning that is printed in any application
that makes use of TabView. It was casued by a QTBUG-35038 and a
proper fix for that will be posted to the stable branch.

Task-number: QTBUG-35134
Change-Id: Ia60c789d9fb8ee662215628fa9733b17cf9be90c
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Fix typo in tableview example.

Sortindicator => Sort indicator

Change-Id: Id9897268bb21e9ba0dc14de2c4cc9e7f9f9a66d4
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Fix desktop style animations to stop when the control is hidden

QStyleAnimation automatically stopped for hidden QWidgets, but didn't
know anything about QQuickItems and kept animating regardless of their
visibility. QStyleAnimation was changed so that it will keep animating
only as long as the animation target accepts animation updates. This
change ensures that the style animation updates are accepted only when
the control is visible.

Note: In order to restart such style animations, QQuickStyleItem needs
to be manually updated when it becomes visible.

Task-number: QTBUG-35319
Change-Id: Ia053912883b9babb184a5467adfc90dd619b3dc5
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
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>