Allow TableView to scroll to bottom

Change-Id: If09c39341833e6162921c280bcc7583cca2fb15f
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
ScrollBar: Pixel tweak widget-less style

Up and left pointing arrows would look off-center.
Vertical handle would overlap 1px with top button, and miss 1px
to bottom button.

Change-Id: I6fe4ce96e62d864e9d6a7c835067e3c95f51bac4
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Doc: check and correct for compliancy with Writing Guidelines

Task-number: QTBUG-30318
Change-Id: I9839470fbac1d14c1788766d275aba3fac6ec8b1
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Add test for dynamic adding and removing layout items

Change-Id: I7a92428e910435f0ecd63577cb12d5ce5b7653bc
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Merge branch 'stable' of git://qt.gitorious.org/qt/qtquickcontrols into st
Doc: correct for compliancy with Writing Guidelines

Task-number: QTBUG-30318
Change-Id: If3916f3250f202a5da4b1f8034ecfba984367af3
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Remove experimental controls

Those controls are not properly tested nor documented.
They are not part of the release.

Remove them for now to avoid confusion.

Change-Id: Ic8bb536e9e91f4fb763f0e1c9b00602e87dd8c44
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
SplitView: calculate implicit size

Set the implicit size of the SplitView based on the sizes of the
split items.

Change-Id: I775b938215216831d10cb50868e4c6733e157eeb
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
SplitView: update code to use 'clampedMinMax' function

This function was added in a previous patch, so reuse it
for already existing code.

Change-Id: Icd5daf195af7e249d4273bbc32a290bed5f0eaa5
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
SplitView: rename 'expanding' to 'fillWidth'

Rename variables to the new Layout terminology, to ease
future maintenance/understanding of the code.

Change-Id: I619f62a0280238fafefe261fae3f00eb575bb699
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
SplitView: always respect min/max

If the user sets Layout.maximumWidth on the fillWidth item, we now
respect it. This can potentially make the splitview look buggy, since
the fillWidth item might then be restrained from filling out remaining
space. The same with the height of each item; you can now control the
maximum height. This means that each item can end up with a different
height. The upshot is that if you add items to a splitview that
cannot grow, splitview will not try to resize it.

Change-Id: If1cc82aefa939898a3b159da6b006f95af42599f
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
disable horizontal flick in TableView

Change-Id: I416febce983b44528611d46adc1aac8ce25507ac
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
TableView: remove unused property backgroundColor

Change-Id: Iff2eb9f6083dbb4e3f49a1a099b0c4c2f004f02d
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Doc: Create documentation for Qt Quick Controls examples

Create an initial set of documentation for the examples - brief
descriptions and screenshots.

Change-Id: I29939ab4ab81b78d1c83718a696d56932a3a285c
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Examples: Update stackview example

Change-Id: Ia73015655ea75ee24cd1f2761df705c42894d12e
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Fix TabView not to insert duplicate tabs

There are three ways to add tabs:
- declare 'static' Tab { } child elements
- call addTab() / insertTab()
- Component::createObject(tabView)

=> Do not rely on the calling order of Component.onCompleted()
and make sure that the same tabs are not accidentally re-inserted.

Task-number: QTBUG-30873
Change-Id: Ib30cfb676debbb302c5e9f7d757f66aab6fcc684
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
TableView: Fix activated() not emitted

The mousearea in TableView has to accept mouse event in onPressed to
receive upcoming double click event.

Regression introduced by Iff3e5c1.

Instead of not accepting the event in onPressed, set the MouseArea
property propagateComposedEvents to true and does not accept the onClicked
event.

Also uses QStyle::SH_ItemView_ActivateItemOnSingleClick to check if the
table is activated on single or double-clicking. By default, it is activated
on double-clicking.

Change-Id: I744174d7b31efebfae5e8db4db7b99a544ecf50f
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
TableView: Expose positionViewAtIndex() method

Task-number: QTBUG-29893

Change-Id: I7c80a68d9d45c3df3e0bf691b69c4510ccd1649d
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Merge branch 'stable' of git://qt.gitorious.org/qt/qtquickcontrols into st
Autotests: Remove expectfail for test addRemoveItemsInModel

The bug QTBUG_30379 has been fixed.

Change-Id: Ic05f70e3dec528cacefba44d14a76952b5636315
Reviewed-by: Liang Qi <liang.qi@digia.com>