[WK2] Update text upon item selection for menu lists

While RenderListBox repaints itself on selection changes, RenderMenuList
lacks this logic when it's used for multiple selections (acting as a listbox).
Make sure we properly update the element's text as the options are toggled.

Originally reported and proposed fix in http://wkb.ug/91862

Task-number: QTBUG-39675
Change-Id: I09f17ff03577fc6f65875674d632684b560fffb7
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Do not add QStyle padding on top of default padding

The recent change to follow CSS padding value, added the CSS padding
to the default QStyle. This however needlessly changes the default
size of input elements.

This change instead uses the maximum of CSS padding and QStyle padding.

Change-Id: I23a39c76db837409ea11915f69ebbfefa2d25548
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Merge remote-tracking branch 'origin/5.3' into 5.4

Change-Id: Ie925a50b94d06e7012a7458549aa2afe6f33a402
Remove unnecessary includes

Removes two includes that hasn't been needed since Qt 4.

Change-Id: I90c83f49b02ca71e3b927f9845c7293db43a582e
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Remove dead code for support Qt 5.0 and 5.1

QtWebKit can not build with Qt 5.0 or 5.1, so the code for those
version is dead and should be removed.

Change-Id: Ief9e08bed372ba9e9f2e0dd115763ad0b8812bfa
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Integrate QWebChannel with QtWebKit.

WebView.experimental gets a new webChannel property. By default, this
is initialized to a QQmlWebChannel internal to the WebView. By setting
it from the outside, it is possible to share the same WebChannel
between different WebViews. The webChannel property can be set to null
to disable this new feature.

For IPC, a navigator.qtWebChannelTransport property is added, which is
essentially a copy of navigator.qt. This is required to be able to use
both independently. The transport is implicitly connected to the
WebView's webChannel.

On the JavaScript client side, some manual boiler plate code is still
required. Potentially, this can be adapted in the future to preload
the qwebchannel.js. Furthermore, we might be able to instantiate and
initialize the QWebChannel before we emit window.onload.

A basic test is added which verifies that this basic integration works.

Change-Id: I5eb0389e6edd6d0c978917e441365e11a02b5c3f
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Merge "Merge remote-tracking branch 'origin/5.3' into 5.4" into refs/staging/5.4
Fix non production_build builds

Merges upstream r156535 fixing force_static_libs_as_shared and new
build issue added, and a number of warnings that prevents building with
-Werror.

Change-Id: Ie8f96fa93bc808b2c8c45850fe2951678235cfac
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Merge remote-tracking branch 'origin/5.4' into dev

Change-Id: I76c1139d08ff80f5d464b3180d8219ed6c55c99b