Doc: Add Qt Quick Layouts QML Types page

Change-Id: If99150e2124dfdbf0bd99889129e66d487a9bd6a
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Gallery example: Increase minimumWidth

Change-Id: I3f97de79c8afed44f7b01778d94cc40bed8cc603
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Fix typo in TableViewStyle

Change-Id: I0b4a917500ec7a520ebd38a4158e707e4dd80c9c
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Fixed incorrect size hints for TableView

This ensures that double click to adjust content size on
headers doesn't end up eliding text. We also added
significantly more space by default.

Change-Id: I05a05649a41ef4b70ee839195a87c684786760b1
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Consistent use of "hovered" and style API conventions

We were still using "containsMouse" in a few places, and
we should consistently add "hovered" to all button types
for consistency. Also fixed the SplitView to follow the
new style conventions.

Change-Id: Iebc333c0cecc5bcde27e626b1a611c2f2edcf7dc
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Revise TableView API for managing the columns

Replace "property list<TableViewColumn> columns" with:
- addColumn(column)
- insertColumn(index, column)
- moveColumn(from, to)
- removeColumn(index)
- getColumn(index)

Exposing list<TableViewColumn> type of property in the public API was
problematic for several reasons. First of all, it limited the internal
implementation too much. Secondly, modifying the list programmatically
did not work as expected, and it also threw nasty warnings while
reordering the columns interactively.

Task-number: QTBUG-30319
Task-number: QTBUG-31028
Change-Id: I0039f7e4be2d6ee9303a4118bdf84146b6a96a05
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Doc: Fix various problems in Qt Quick Layouts documentation

This change fixes the following things in .qdocconf:
 - CamelCase for project name
 - Proper selector for QML Types topic
 - Remove exampledirs since there is currently no example

(Both exampledirs and exampleinstallpath should be used
if examples are added)

Change-Id: I5c56d2e57889fb0e9a94e03222af0cdf2858ddc2
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Change default layout spacing to 5, and make it depend on DPI

Change-Id: I6f34ace6a24ce918cdd417bbfcd2fe8126aa321b
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Move backgroundColor from TableView to TableViewStyle

This property was not respected by some of the native styles
and makes more sense as a styling attribute.

Change-Id: I9cc1d3a130b764a67552ed7f0cec49ccc87ea246
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
MenuItem: Connect to own action's 'shortcutChanged' signal

Otherwise, we won't be setting the shortcut on the platform item.

Task-number: QTBUG-31368
Change-Id: I333b903719d6e95a411f4f423c0e9b8ce15e640e
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Improved size calculation of GroupBox

This adds some pixel tweaks on mac, adds minimum
size to fit the label and fixes dpi scaling on Windows

Change-Id: I4c43ba4a7815be87356336a9dafc1a217437940b
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Rename::tabAt(index) to getTab(index)

The fooAt() type methods are reserved for coordinate based queries.

Change-Id: Iea91bdd29df4fa53cc1c7a07880f466ef2325725
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Rename PaddedStyle to AbstractStyle

Make Style inherit AbstractStyle, so it becomes the base class
of all styles. AbstractStyle also now has a default "data"
property so it's possible to conveniently declare helper
content inside styles.

Change-Id: Id84f3762cfae506e65021322619d7fb77b137994
Reviewed-by: Tomasz Olszak <olszak.tomasz@gmail.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Removed reference to nonexistent file PageSlideTransition.qml.

Change-Id: I2b4a4369496d85829fb2de14078042c0a76f2aba
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Make styleHints a variant map

The styleHints are not really flexible enough as a stringlist
as we want to be able to pass actual properties. Since we already
have a properties member of the style we should move all of our
internal properties to that.

Change-Id: Id7a66ade243461f54c41b9ec89144668aaf19483
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Docs: fix missing/leftover docs, types, tags...

Task-number: QTBUG-31262
Change-Id: I6bf48604b9392a2a9c63c344363188a4693a8547
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Remove remaining references to PageStack

Change-Id: I59a9846c83340d0752659ef22cbb19a4be6a4129
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Do not crash when deleting a layout

onItemVisibleChanged() was in some cases called after the dtor of
QQuickGridLayoutBase was called.

After having called the dtor of QQuickGridLayoutBase it would
continue to call the dtors of its base classes until it entered the
dtor of QQuickItem.  In QQuickItem it would call setParentItem(0) on
all its child items. This caused the item to become visible again,
thus it would emit visibleChanged() and finally invoke
QQuickGridLayoutBase::onItemVisibleChanged() which lead to the crash
(while trying to call the virtual invalidate())

The fix is to do an early return if we know that the layout is
in the destruction phase.
isReady() will return only true *after* the component is completed,
and before the component is destructing.

Task-number: QTBUG-31276
Change-Id: I191e348278e3d052c109bffb92a1ccd9326859bd
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Doc: Make Stack attached properties more visible

And use \qmlattachedproperty instead of \qmlproperty for
properties in the Stack.

Change-Id: I1ffbd84ce91fd5a9040c082a8bcb403589becf91
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Several improvements to documentation

* List all applicable attached properties for each layout
* Move the stuff that describes min,pref and max sizes from GridLayout
  to the Layout docs.
* Document that all layouts \inherits Item. (Even if they don't directly
  inherit, this is consistent with how the positioners are documented)
* Add some links to Row, Column and Grid where appropriate
* Use \qmlattachedproperty instead of \qmlproperty for the attached
  properties. (Again, consistent with how the Positioners attached
  properties are documented)
* Change POSITIVE_INFINITE to the correct POSITIVE_INFINITY

Change-Id: Ia9272faa479b48a97300b031402c0380ca113d7b
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>