Fix broken highlightOnFocus for ScrollView

Change-Id: Idfd9c14b0b955cc9ccfc19ebd51686909d04875d
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Fix binding loop in TabView

Change-Id: Ie1e177ed65fb143d03fe1980daa55d08e10f1ab2
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I61be9f3a1f9e2dbe321c7c7eee77c9a727259169
Update module version to 5.2.0

Change-Id: Ib6027d669ea56120ea120e97739c0ea2544e9337
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I791893c7c7d4f345eaa2ddf6b03ef675f39814b8
Merge branch 'stable' into dev

Change-Id: I9297c24214707b96f99eddd3c6973c31cf5df05e
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: Ia2359d998d4192441a971fe816d0ec31a2abbca9
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I7a4fd5631bb0ebb51b9955cba7124671a3efe73b
Fixed a few typos in TabViewStyle.qml.

Change-Id: Ie47788f95d2ebfb0143bbccc77aa37efe155958d
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Slider: pressing the handle should not change the slider position

We have to maintain the handle offset until the drag operation
has ended. If the user clicks outside the handle, we center
on the cursor position as before.

Task-number: QTBUG-31042
Change-Id: I8f23d998774278c6353d31b6fffea54596f7158e
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
TextFieldStyle: Fix margins

Change-Id: I5386e2b4af37c1dbad50740c748e953c81c85d22
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Fix rendering of bottom tab position with desktop style

We changed the TabView api from int to string so now we need
to translate to the style.

Change-Id: I9dafd9166a552a38eec06f46f4c6d4697b10eff6
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Fix a wrong behavior when mouse click tab in TabView

When nextItemInFocusChain is out of the TabView, the tabitem in TabBar
will get focused.

Autotest is included.

Change-Id: If5701afa1aeed16383b8d96483342a4629293997
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
ToolButton: Fix checkable behavior

Add autotests.

Task-number: QTBUG-31033
Task-number: QTBUG-30971

Change-Id: If82d5a9b6200e62d358ffc83e55137bab9b242c5
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Made sure items with preferred width of 0 could also stretch

If no stretch factors were specified, we used the preferred size as a
stretch factor. Obviously, that didn't work if the preferred size was
actually 0.

This patch works around this by actually setting the stretch factor to
1.0 if this is the case.
This should work fine in most cases, except for the case where there
are also other items with a preferred size close to 0.
In this case, the item with preferred size 0 will just grow
faster than an item with e.g. preferred size 0.1.

Task-number: QTBUG-31217

Change-Id: Id5a3e19c9cd756860fc4052daee3eb5582f39d0c
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Don't implicit cast the enum to a bool

Casting a QLayoutPolicy::Fixed to bool was fine since that would return
false.
However, casting a QLayoutPolicy::Shrink to bool would return true,
which would give wrong results. (The conditions only want to check if
the item can grow).

There were no bugs because of this, simply because the Qt Quick Layouts
API does not allow setting *only* the shrink flag.
However, it would become a bug if we ever added such a feature.

Change-Id: I781aec85117f45e12e49ba27f7ed8f5724f71bd9
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Update GroupBox to support contentItem

- Removed contentWidth and contentHeight since it is not needed
- Exposed contentItem so that it can be designable.
- Respect the implicit width or height of the contentItem if it is the
only item of the GroupBox. Otherwise childrenRect is used.
- Modified the style so that the style takes care of only the
padding size and not the entire size of the group box.
- Fixed flat and checkable appearance for custom style

Change-Id: I2c7ec4cb7d5e6f96863847e8d8d6d6f52428364e
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
TableView: optimize bindings

Change-Id: I11096da2efdebf2a3a2e003c90e48e120f8ba5fd
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Move the QML Base style within Styles/Base

Change-Id: I1a247656b957c87ef728fb42b2b212e02b5e5cd9
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
TextArea: fix word wrap layout

Since scrollbars affect the document/viewport size and vice versa, we
must allow the layout loop to recurse twice until the sizes stabilize.
Furthermore, avoid nasty content size binding loops (from ScrollView)
by providing a specialized Flickable item that TextArea has full
control over.

Task-number: QTBUG-30832
Change-Id: I74fe6c5017e75aa411fdbb64087afa18e1221ce9
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>