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>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: Ife57f59094cb9be9c5e8a187df8d1fd25110a53a
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>
Revise and align ToolBar & StatusBar size calculation

Instead of preferring the layout size, and only using the panel size
as a fallback, take the maximum of the two. This way styles can provide
a default size that will be respected. Furthermore, replace unnecessary
function calls with declarative property bindings.

Change-Id: Iabc59c694ac8c8302cea72f53c9177462d7f146c
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@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>