Allow size hint changes during a rearrange.

Previously, we marked the layout as not dirty straight after a
rearrange was done. However, in the case of when a size hint changed
during a rearrange that would block the pending rearrange (since it
only perform the actual rearrange if its dirty).

Instead, mark the layout as not dirty *before* the rearrange.

This will allow bindings such as
  implicitWidth: height
to execute the pending rearrange.
(Although such bindings are not encouraged)

Task-number: QTBUG-36169
Change-Id: I75bd821a0ca4302026bd5dac01287ca3359d471b
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Touch example: Fix back navigation

The Key event needs to be in a item that has focus.

Change-Id: I6f7293ac74b477e37c200dbb7ee8629d4f769d05
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Ignore selectByMouse on android until QTBUG-36515 is resolved

At the moment mouse selection on android can make text input
unusable when certain virtual keyboard features are enabled.
This patch will temprorarily disable this feature on
TextField and TextArea until we have a workable solution for
these cases.

Change-Id: Ia04db31d1e83ddfc47bec7519e5a78746e6626a9
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Doc: Fix broken links

Change-Id: Ibf4431b20b61c5e16c6936775647ba3eb0049abe
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Set accessible name for RadioButton

Change-Id: Iad011baa39f955681613656028c6ccf852a8f869
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
FileDialog: new features in DefaultFileDialog.qml

Use a ComboBox for the filters.  Add a sidebar showing shortcuts for the
common paths and drives that the user will most likely need, and an
editable list of favorite paths.

[ChangeLog][QtQuickDialogs][FileDialog] The FileDialog fallback QML
implementation now uses QtQuick.Controls, and has added features
including a Combobox for file extension filters, and a sidebar with
common paths, drives/volumes and favorite paths.

Change-Id: I228ebdadcf338917db81a2b3d03d3c0b09584e7d
Reviewed-by: Liang Qi <liang.qi@digia.com>
FileDialog: centralize URL validation in setFolder

QQuickAbstractFileDialog::setFolder() takes care of the pathological
cases so that the QML can be more straightforward.  This is an
alternate fix for QTBUG-36006 and some other navigation bugs.

Change-Id: I7b6b6c8cb31d68e3971e39842ec63118854ecd6d
Reviewed-by: Liang Qi <liang.qi@digia.com>
FileDialog: selectedNameFilter property is case-insensitive

All Files got capitalized somewhere, so the property binding in the
example did not take effect.

Change-Id: Ibd5aecbacc8dd421bf0bd482146d87cc8c9b1046
Reviewed-by: Liang Qi <liang.qi@digia.com>
Merge remote-tracking branch 'origin/stable' into dev

Conflicts:
	src/layouts/qquicklinearlayout.cpp

Change-Id: Ib24dab43c37fc0f3f6a85398766f102a1ac833c3
Update .gitignore

Change-Id: I8776ba6055b1d26e09cf832bfa0bf98cb4d88d70
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Introducing styling for Menu, MenuBar

MenuStyle

We expose the frame and item properties together with some
convenience properties (basically color related).

The menu item data is exposed via a styleData object, similarly to
what's done in TabViewStyle.

In addition, we introduce MenuStyle.menuItem which brings some
convenience when it comes to overriding subcontrols of the menu item.

MenuBarStyle

We expose background and menuBarItem. The menubar item's properties
are accessible through the styleData property in scope.

Style cascading

Additionally, MenuBarStyle has a menuStyle property that will apply
to all its menus and their submenus. Similarly, assigning a style
to a Menu object, will apply it to its submenus. It's still possible
to override the parent menu's style by declaring its own.

[ChangeLog][QtQuickControls][Styles]Menu and MenuBar are now styleable
Change-Id: Ib724b7a6426bdfce5da314620d51dfaa76f76500
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Add Calendar to Qt Quick Controls.

Task-number: QTBUG-29948

[ChangeLog][QtQuickControls] Calendar was added. Calendar allows
selection of dates from a grid of days, similar to
QCalendarWidget.

Change-Id: I279130e704bc0dfd8dfe114ec9b6b49e111faf96
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Don't ignore horizontal alignment for items with baseline alignments

Horizontal alignment were ignored when an item had baseline alignment
specified.

Change-Id: Ide06e6929a223fa24c3644954fe134756d02f748
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Set baselineOffset on Styles/Base correctly

Will currently fix these styles:
ButtonStyle
CheckBoxStyle
ComboBoxStyle
RadioButtonStyle

TextFieldStyle and SpinBox style are not possible to fix yet, since they
require TextInput to be fixed (its baselineOffset seems to always be 0)

Change-Id: I78f90ed70ab1b6cc99c5e773e9aecd9b0342d7ae
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Add Component Map section to CalendarStyle documentation.

The Component Map is a color-coded legend of the components in the
style. The format is:

<color-coded image showing sections of style>

<table of color-component URL pairs>

Change-Id: I0e6e4577516669515c083e58a8f875e344f7bdf7
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Use childAt() instead of cellIndexAt().

Change-Id: I74ee716620d31363bccaade89d51aa23d3b39830
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Consolidate StandardButton, ButtonRole and related functions

Moving them into QPlatformDialogHelper for the convenience of both
widgets and QtQuick.Dialogs.  The main reason is to ensure that
QtQuick.Dialogs does not need to depend on the widgets module, in
order to re-implement the button box concept in a generic dialog.

Change-Id: I471dff185767d05f3579c76082550008085ee681
Reviewed-by: Liang Qi <liang.qi@digia.com>
QtQuick.Dialogs: added Dialog: wrapper for arbitrary content

It provides only a button box, so the application developer can
supply the rest of the dialog contents.  This is useful for various
kinds of dialogs that prompt the user for input.

[ChangeLog][QtQuickDialogs][Dialog] Dialog is a new wrapper component
for dialogs with standard buttons and custom content items.

Change-Id: I0434bed5f504820dc0a668cb993a94980f99852a
Reviewed-by: Liang Qi <liang.qi@digia.com>
FontDialog: new version of DefaultFontDialog.qml

Use Controls and Layouts in new DefaultFontDialog.qml. Use a
TextInput for sample text, and the dialog supports tab key
navigation.

[ChangeLog][QtQuickDialogs][FontDialog] The FontDialog fallback QML
implementation now uses QtQuick.Controls and QtQuick.Layouts.

Change-Id: I133368b14c958c7231dc0ed9a4777b0712eb3670
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Update plugins.qmltypes for QtQuick.Layouts

Change-Id: I9b717b9986ce27102ab4a1bd8f6d6cc9aae006f1
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>