Style: Increased implicitWidth of the ComboBox

Change-Id: I60ed3323308bba2578e1eed1849870b5f607806a
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Improve focus behavior of TableView

The ListView should get active focus on tab, and we need to set
the focus to true so that it actually proxies the TableView
focus correctly.

Change-Id: I2091c7d4320c52acea75464a8d078232b6c8c29b
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Menu: Normalize click-popup-click behavior

See comment in code.

Change-Id: I5ab6c639079dd57aaf8b661e4307cf5587361495
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Add support for auto-positioning of items in a grid layout

Items will be laid sequentially in the grid, either in LeftToRight
mode or TopToBottom mode (depending on the value of the flow property)

Change-Id: Ib080517260ac4519171e77abd533cad3f306f70e
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
TestBench: Add activeFocusOnTab property and Label

Change-Id: I0e416d21987d0b36f7ae2a7d537276889bc067e1
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Arbitrary window doesn't appear transient on X11, but a dialog does

After verifying that WM_TRANSIENT_FOR was being set correctly,
the child window was still showing up at an arbitrary place with
OpenBox as the window manager.  If it's marked as a dialog though,
it will be centered properly over the main window.

Change-Id: I0c1ae0755f51b564d986134520d036b72658fae4
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Fixed a bug where spans across empty cells got broken.

If a row/column is only used only because of the spanning of an item,
the cell should be treated as it didn't exist. We keep track of this
with the "ignore" bit array.

The old code would always start from the row/column at position 1.
In the attached testcase this made the effectiveRowSpan become larger
than actually needed.

Task-number: QTBUG-30255

Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Change-Id: I410ed373f408014333d3964e2ddbcfeb25bec3a6
(cherry picked from qtbase/4f072e2d3d7e429359ff15a615d02712bff7ee51)
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
disable module when widgets is not available

Change-Id: I844710fc41dbe805755abd6ca935749a617da337
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
TestBench: Add preferred width for combo box

So the text is not elided.

Change-Id: Icd1013674c1b23ac15265e2859dc5240ad56744f
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Doc: minor language edits

Concerning vocab., punctuation, syntax and/or Writing Guidelines.
Corrected whitespace issues.
Replaced "if" with "whether" in Slider.qml

Task-number: QTBUG-30318

Change-Id: I0e0e8d2b807f0a6534deb2caa6dbee7eb206f43b
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Reviewed-by: Martin Smith <martin.smith@digia.com>
Reviewed-by: Laszlo Papp <lpapp@kde.org>
TextField: Fix baseline distance to panel frame

Still not perfect, and both the cursor and selection height are
one pixel too tall on Mac (and possibly Windows). On Ubuntu, Gtk 2
looks almost identical to native. Fusion also looks almost identical
compared to QLineEdit.

The basic idea is to override (again) what the style does, since we
do the painting in the Qt Quick side.

Change-Id: I179c2dfe6c76dd35f8bb87a5cd7c183f8e0f67e5
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Cleanup the superfluous \internal tags that are no longer needed

Change-Id: I2eaaf7e82351e70a742eeadc32b8e1f8655a02c1
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
doc: Minor changes to qtquickcontrols.qdocconf

Organizing the file a bit to make it match other qdocconf files.

Change-Id: Ide0ff9da3d1b586e7a00828ef546c4435359ba8c
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Fixed a bug where the MaximumSizeHint of a layout with spans was wrong

This was spotted while tracking down a similar bug related to spans.

The problem was only for the maximum size, since the size of an ignored
row/column was min: 0, pref: 0, max: FLT_MAX (the default constructed
values for a QGridLayoutBox).

Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
(cherry picked from qtbase/9d7ae6dfbe25fb70a362a4cf955c187cd24cb007)

Change-Id: Ic0f3cf12639fbb6ab85c4946d9e8cc1d8d68e753
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Make it possible to use forceActiveFocus on TextField

I believe the manual forceActive focus is no longer necessary
since TextField is now a focus scope and it is enough to set the
focus property on the TextInput. Without this patch, calling
foceActiveFocus does not actually give the text cursor focus.

Change-Id: I2dda5c7c0e9511f0d8b6817dcd7b78230e6cb823
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Fix ComboBox textRole when used with an array as a model

Task-number: QTBUG-30455

Change-Id: If80dd74a5967a6a7392967fb6a19a094f81abd36
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Change some "Layout.Expanding" members to fill{Width|Height}

Seems like these were forgotten back when the change was done.

Change-Id: I73fed91ccdbeac96164513c51a7b9b3ee66efcfa
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Don't rearrange/recalculate the layout if it is hidden

Change-Id: I8d24afeef04003c3789eaa7bd136e3f2de0dcc6b
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Remove a function that doesn't serve any purpose anymore.

setupItemLayout was supposed to do initialization on each item before
it got added to the layout, but all it did was to add the attached
property to the item, which is really not needed anymore.
The layout code does not work under the assumption that each item has
the attached property anyway, so we can remove it. (And in addition
avoid some potential allocations)

Change-Id: I6d7e3e5b13531dfeaceef495de144dcf87d38cc4
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Add documentation to QtQuick.Layouts

Change-Id: Ia220ccfd534ca089367c4ee954e081770784524c
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>