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>
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
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>
Handle invalid indexes for TabView.getTab

Return undefined if ListModel.get returned undefined instead
of throwing an exception.

Change-Id: I38cbd21472e8c409390e8269e5fa0a800106392e
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Fix the update of TabView.currentIndex when inserting/removing tabs

- Update currentIndex when adding or inserting tabs.
- Make sure that we update the current index before updating the array
  to avoid a state of currentIndex > count -1 when removing the
  last tab, where a property binding on TabView.count could try
  fetching a tab past the array limit through TabView.getTab.
- Only decrease currentIndex when removedIndex <= currentIndex to
  keep the current tab active when possible. Activate the next tab
  instead of the previous one when the current tab is removed to make
  it more instinctive to remove multiple tabs successively.
- Keep the current behavior of leaving currentIndex to 0 when
  removing the last tab.

Change-Id: I030b86a03ce73f1177b1f04857abbdc2f7ec5835
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Fix typo and add missing period to GridLayout documentation.

Change-Id: I200601a11935c3054c4b876fb9bf2e29ecf48c2d
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
TabBar: fix a typo

Task-number: QTBUG-38819
Change-Id: I2ca82e5f5aa64f515225f7da262adb4d9b239802
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Doc: modified wrong default value

Task-number: QTBUG-38772
Change-Id: I8e9c0c6e510e264f1bd262961056489c75fddf83
Reviewed-by: Martin Smith <martin.smith@digia.com>
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Fix TableViewStyle::rowDelegate docs

Change-Id: I27b0347192def2ebfd761401a037f36d7207b2f5
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Use RotationAnimator in the BusyIndicatorStyle example snippet

Using NumberAnimation is a bad example, because it won't actually
animate when the app is busy.

Change-Id: I877a7226c5985f446f6ed6c6f6e709f2296b39ca
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Fix CalendarStyle's layouting and grid cell calculation.

 - Wrap all panel items within a container, so that the frame width
   checks happen in only one place, and the other items don't need to
   care about it.
 - Move the logic involving grid line width into CalendarUtils, so
   that the style code can be for styling and not maths.

Task-number: QTBUG-38847
Change-Id: I99a1f131b9cd608f3f7a7627d51a75780a6cbac2
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Fix selection handling in texteditor example

Task-number: QTBUG-31784
Change-Id: I7122abbfd346edd85f17c54dfde37db93a1ba0fc
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Don't allow navigation to previous/next month when dragging mouse.

When dragging the mouse over the calendar and a date from a previous
month is hit, it will change the visible month to that month.
This becomes worse when dragging the mouse between in the start/end of
the calendar, because there are usually several days shown from the
previous month, and the calendar quickly goes back several months.

[ChangeLog][Calendar] Calendar no longer selects dates
in the next/previous month when dragging the mouse.

Task-number: QTBUG-38848
Change-Id: I0b9bc727a05397a8e4f1280e16c91e39e160bf4a
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Scroll the parent mouse areas when reaching the bounds of a ScrollView

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