TableView: Expand to single column and prevent multiple use

This fix ensures that we can only add a TableViewColumn exactly
once. It also automatically expands the column with to the viewport
when only one column is in use.

In addition I have disabled dragging when columnCount == 1
as it was pointless.

Change-Id: Ief6011c3e58166907836bf55b0fa6643698192d2
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Remove unnecessary bottom margin for TabView on mac

This extra padding at the bottom is not needed and only serves to
make the borders uneven on mac.

Change-Id: Ibb3f8a3ba1f37ce1e9c6674a53cfb13e257fb97f
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Doc: Add doc structure for Styles

And:
- Add an index page for the Styles
- Add missing documentation for some properties (Component)
- Fix unexpected curly brackets in a couple of code snippets

Change-Id: Ib7265d1cd011a81012eb4b7f69738b84fba5b531
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Doc: Fixes warnings

Fixes issues including:
- Misspelled links
- Links to signal with arguments
- \table in SplitView.qml
- Links to current file

Change-Id: I2cbadf661a641f19ed55f6854922b2b69966bc9c
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Fix incorrect size hint for ToolBar and StatusBar

We only cared about reserving space for the height but while
trying to actually get the minimumSize for a window based on
the toolbar content I realized that we really need to calculate
the width as well.

Change-Id: I7b55b66a2475a2355d30614095f173a39f47f2f1
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Improve default size for several controls

We should set this to some decent default value that doesn't
look wrong. Note that the width and height definition in
TextArea could cause conflicts when used in layouts.

Change-Id: I815ff96c02f9a9a76c07d57181f3a24291c83c52
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Buttons: Allow overriding of visual properties when 'action' is set

Those properties are, text, tooltip, iconName, and iconSource.

Also, properly capitalized gallery's tooltips.

Change-Id: I1995a85565edd7aaa420279821d7c1a31ef18253
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Gallery: remove reference to colorDialog

Change-Id: I0433e350634b4a2bea6161f53e7c7363654e2cf6
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Fixed some bugs in how effective size hints were calculated

Do not bound explicit preferred size with implicit sizes. This
means that if Layout.preferredWidth was *explicitly* set to 50,
and Layout.maximumWidth had the implicit value 20, the effective
maximum width would be expanded to 50 in order to not disregard
the explicitly set preferred width. (covered by the tag
"expandMaxToExplicitPref" in test_sizeHint)

Note that this doesn't break any autotests, but the row layout
autotest was slightly changed to be able to add the new test cases.

This should make the behavior match the behavior of
QGraphicsGridLayout and QGraphicsLinearLayout

Change-Id: Ia23c8ef909827f14349906c003c72bb83689ef9a
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
TextArea: allow declaring child elements inline

Change-Id: I7da8e3664d6bd3ee9a8c4f22d4a5b686d1c5b5a9
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Fix warning in Slider when stepSize is set

Also adding a new test for stepSize

Task-number: QTBUG-31441

Change-Id: Ib8d9cc2188b5f73b6b0ac866ade1a7edb1d662b7
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Improve qtquick controls page

Added more information for "Getting Started"
- Cleaned up some language
- Remove desktop specific
- Mention widget dependency
- Use QmlApplicationEngine in example

Change-Id: I0e5d4bef124ce4571c1b6fe780ee78b8231cbb32
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Prevent possible division by zero

This might cause problems on certain platforms. While hard
to reproduce it seems safer to add the check.

Note that we do not get the alternating pattern if there is nothing
set on the model, but this was already the case.

Change-Id: I984df9cfef30b4de0e72e8ccf14cc65bddbf04ef
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Doc: Small fixes

Change-Id: I163f69c14ecbc07a66b1bac7c5a53b22405c895e
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Expose hovered to our controls and document it consistently

The current solution is messy and we only expose it partially to
some of our styles. I think we should simply expose this to all.

Change-Id: Ia546d5657ea416df99c9d9d92cc714b7f1c928fe
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Reviewed-by: Nico Vertriest <nico.vertriest@digia.com>
Replace backgroundColor with backgroundVisible

This exposes backgroundVisible to TableView and
replaces backgroundColor in TextArea.

We think the backgroundVisible is more flexible and allows us
to find a more appropriate solution to support palette in the
future.

Change-Id: Icfcd512c29cf030059c4ce2d32feb402d1a33662
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Fix missing headerview gap when not showing frame in TableView

Tested on all three platforms and looks better.

Change-Id: I8a68dfc7fe97a05c4313ac10de2f93dabec5a964
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Fixed a bug where a rearrange was not always done

This happened only when the size of the layout didn't change.

Task-number: QTBUG-31570

Change-Id: Ia090c0062fa8fc3eb6f648592529ee8fcd025593
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Improve the Styles page and add missing SliderStyle property

- I noticed we incorrectly exposed sliderPosition.

- This adds some more custom style examples for the gallery and
makes the second column actually different from the first.

Change-Id: I73f0d613f51f6e75aaf734fd4e4c9fdb890e3e42
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Merge remote-tracking branch 'origin/release' into stable

Change-Id: Ibc3e2f4b06b5404c71fdf17cb6503cfc26123468