Dialogs: don't allow click passthrough when a dialog is showing

On Android and other non-windowing platforms, clicking outside the
dialog dismisses it if it is non-modal, but if it is modal we still
need to capture the click even though it will not dismiss the dialog.

Task-number: QTBUG-39339
Change-Id: I18e892d1ca9c7ed4bea44c462a84b48ca44915d0
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
FileDialog: handle back and esc keys to reject the dialog

When the dialog was open then pressing the Android back button would
cause it to quit the application as it just went straight through.

Task-number: QTBUG-39204
Change-Id: I69e5f39ab90a5c280ae4dbd1a498fb6f3d4dcf1e
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Make SliderStyle example use implicitWidth and implicitHeight.

This is what we encourage, so it should be consistent.

Change-Id: I0b9bcaebf45aec599a71a351c924883d432c0af0
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Fix TextArea's font

Using a Binding element overrides TextArea::font with a value from
TextAreaStyle::font, whereas the style is only supposed to provide
the default value. Use TextSingleton's font to avoid the original
binding loop.

Task-number: QTBUG-39328
Change-Id: I90113ef03dd31b2a060dfe12361708f99b35eb53
Reviewed-by: Liang Qi <liang.qi@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
TextField::font: fix the default value handling

Assigning undefined to font is not possible, so use TextSingleton::font
as a fallback instead of undefined.

Change-Id: If148f7773ca784c0a1eb78f952dfad073fa9b1e3
Reviewed-by: Liang Qi <liang.qi@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
TableViewColumn: Process all the rows in resizeToContents()

... including the first row.

Task-number: QTBUG-39337
Change-Id: I55bf61168840e9a7a5b31d7be2182b6974371a4a
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
TableView: Reset dragged header position if not moved

The user expects the "ghost" header to be aligned with the actual
column header when he starts dragging it.

Change-Id: Ifccf633403a72fe8448132fe6c349a85acba28d7
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
TableView: Make sure we get the content width with hidden header

The key is to get a headerRowDelegate of non-null dimensions.

Task-number: QTBUG-39393
Change-Id: I5ceadb07ebfc84142bbbfe98c5d61780e0314cf5
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Menu: Properly relay enabled state to QPA menu object

Task-number: QTBUG-39384
Change-Id: I1b71912b4f35ea0aa9e06667a5c0ecedec30f980
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
TableView: Allow resizing and scrolling single-column tables

Also makes sure the resize handle is visible in desktop style.

Task-number: QTBUG-39393
Change-Id: I44410c65e76b0a3221ea5fce713c1f1b69079947
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Calendar: fix dayOfWeekDelegate positioning

The grid line width needs to be taken into account

Change-Id: I13ecf5e32d1ae3fa967bbd01ae104686ee371411
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Calendar: respect style provided size

Task-number: QTBUG-39473
Change-Id: Ic0f874a6015b13b4833c6e1d6441c54d9533e2da
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Make Base ToolButtonStyle honor icon size.

Change-Id: Iba7cd88bd3d69ad254f312f57845d10c6170af63
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
CalendarStyle: do not hard code the height of dayOfWeekDelegate

Task-number: QTBUG-39482
Change-Id: I7b610a098402f5ec684fc0d7f9b47c4b9981e733
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
CalendarStyle: do not hard code the width of weekNumberDelegate

Task-number: QTBUG-39482
Change-Id: Ia46f79e5969b9d0a1262bca871a7f389d0df9688
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Merge remote-tracking branch 'origin/stable' into 5.3

Change-Id: Ib60d7e00639f5a73bf4eed48e44dab880cdc748b
Merge "Merge remote-tracking branch 'origin/stable' into 5.3" into refs/staging/5.3
CalendarStyle: document available styleData properties

Change-Id: I0eb2a3ef443fe0827cb6b5d1d4bfa44543025906
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
CalendarStyle: add styleData.index for dayOfWeekDelegate

The first/last day could be styled in a different way compared to the
days in the middle. Expose the index for convenience and consistency
with weekNumberDelegate.

Change-Id: Ia0cdf5d121f81c243345ea65a8ee355342b4f220
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Fix CalendarStyle::control as read-only

This should never be set by the user, and marking it explicitly as
read-only makes it also appear read-only in the docs.

Change-Id: I9b66a62d2989446396e4c3ceb81d2ee8575d7a03
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>