Correct positioning for popups in QQuickWidget

Handle the case where the QQuickWindow is hidden and the content
is rendered somewhere else using QQuickRenderControl.

Task-number: QTBUG-38116
Change-Id: I51fb9001c307f53bf7d724860b2a66287982724e
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Add changelog for 5.3.0

Change-Id: I99fadbd5dff0a4ec5e6abd5b8a6b5b19cbfcace7
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
ComboBox style: Remove old styling API in Base pop-up frame

Also, make it more useful while not yet implemented.

Change-Id: I954623c83e24398e0b4d099c1ab3f608082c2073
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
ComboBox style: Remove old API in desktop drop-down frame

The contentWidth, contentHeight properties no longer exist. We should
use padding instead.

Task-number: QTBUG-38054

Change-Id: I0e2574a5b17e12b9e43a3ab42e86ce38a31fff84
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
ComboBox: Update currentText when currentIndex goes from -1 to 0

We need to help things a bit because the internal selectedText property
won't change in that specific case.

Task-number: QTBUG-38036

Change-Id: Id997da97a77faad8ffaad08e8b9c7614d8b6b7fc
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Tests: Remove insignificant marker for Win7 build with Angle

tst_controls is now passing for the Windows 7 32bit with Angle
configuration.

Task-number: QTBUG-33029
Change-Id: If0b47b827d97bb654a12bb8a2c9dc98d3b968988
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
Fix styleData.activeFocus for TabViewStyle::tab

As the documentation says, the property is supposed to be true when
the specific tab button/item has active focus. It was an alias to tab
bar's activeFocus, so it was true for all tab buttons/items when any of
them had active focus.

Change-Id: I5fd56ec56bb496ce75735a63bbb581c4bcfc6186
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
ComboBox: Subtract style padding from TextInput width

Task-number: QTBUG-38384
Change-Id: I89b59bda26188e9aebdd696d0a3af02389921279
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Add Window declaration to plugins.qmltypes

QmlDesigner needs to know that Application window is derived from
QQuickWindow.

Task-number: QTBUG-38663
Change-Id: I4a90dc6a0d69ad5688431c86014cbdb36259caab
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Reviewed-by: Yuchen Deng <loaden@gmail.com>
Merge remote-tracking branch 'origin/release' into stable

Change-Id: I7d6be51a5601fb90ed5e102b63173ccc01b39f36
Ensure that child MouseAreas will get the event first

By lowering the MouseArea provided by a ScrollView we can ensure that
any user MouseArea created as a child will get the event first which can
pass it on afterwards.

Task-number: QTBUG-38083

Change-Id: Id0a36fab7600966a0e12043fa7e8a98641d71a81
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Calculate the position of the scrollbar handle correctly

When the width of the flickable in the ScrollArea was changing dynamically
so it ended up with an originX that was not 0 then it would not calculate
the leftMargin of the scrollbar correctly. The calculation here is done
based on how QStyle calculates it for consistency.

Change-Id: Ieb247f77ab10eba4015eed897d3babb94c752743
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Merge "Merge remote-tracking branch 'origin/release' into stable" into refs/staging/stable
Menu: Fix QPA related crash on exit

In QPA world, menus are always referenced by a menu item. (This
is the menu item either on the menu bar or in the parent menu.)
So, the same way that we set the menu item's menu in the menu's
constructor, we must clear it. Specially since qtbase commit
8605f44097a986e10c2ddaf4b4eae0b2331d98d1 which checks for the
menu reference in the menu item's destructor.

Change-Id: Id196fc7c2082dbff1d9006cbd82b7237532c4e3c
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
FileDialog: update icon whenever the filename changes

view.model.get(styleData.row, "fileIsDir") is unreliable for some
reason, but each filename usually changes when we go into a different
directory.  Maybe it could still fail if you navigate from a directory
containing a directory, to another directory which has a file with
exactly the same name in the same position.  Since most files have
extensions, this is unlikely...

Task-number: QTBUG-38683
Change-Id: If080c4f1a7a01b20f6c468fcb06653e3c2314a1a
Reviewed-by: Liang Qi <liang.qi@digia.com>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Merge remote-tracking branch 'origin/release' into stable

Change-Id: Ic5c4ea467890e1033e33161a6cf7f83cf5adb01c
TableView: fix styleData.row to be a binding

Must be a binding to keep the index up-to-date when moving rows.

Task-number: QTBUG-38789
Change-Id: Ibd2fe34d7afccc523d563351bd3366c7c7c66635
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Merge remote-tracking branch 'origin/stable' into wip/tizen

Change-Id: Iffd72945e27aadb804bc980bd935aedb437ab70a