Fix tooltip position for real inside QQuickWidgets

If the QQuickWidget was embedded in a complex layout, tooltip positions
would be off. Tooltip positions need to be moved by the offset of the
actual render window.

Task-number: QTBUG-39878
Change-Id: I5f923b1d1a0956aa67afa7c05d4bfec2788682a6
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Get the popup mouse position for the right screen

If the parent window of the popup is not on the primary screen
use the right one to get the mouse position.

Change-Id: Ib9929e6fdf90dfae2457486edc9504719bdaad8b
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Gallery example: remove the "Layouts" tab

The content is identical to the Basic Layouts example.

Task-number: QTBUG-41307
Change-Id: I781d741ccfb9cc1443eae7410990d968ff6a209d
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Doc: Fix documentation issues for Qt Quick Dialogs

 - Document clickedButton property for Dialog, MessageDialog
 - Update Dialog::accepted() and rejected() documentation
 - Remove duplicate documentation for Dialog::visible property
 - Update description of modality property for ColorDialog,
   FontDialog
 - Fix broken links

Change-Id: I5b73ea5cbccf1ad0203351730197336e1c6e1b98
Reviewed-by: Liang Qi <liang.qi@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Add "Styles" example

Based on the "Styles" tab of the Gallery. The motivation for this
change is to cleanup the Gallery example so that it eventually runs
nicely on various desktop and mobile platforms without major
modifications.

Task-number: QTBUG-41307
Change-Id: Iffcd3557bf7c77f5a10bda8bfda5ddb636dd5ac1
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
iOS style: add cursor delegate to text items

Change-Id: Iefaac84eda3eefeff709f592ad41637f31b0fdd3
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
add support for setting cursor delegate through style

Change-Id: I064c4df7213a8c1c0ecc38ea9b224444abf13d1d
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
gallery: cleanup the menubar

Remove the non-functional submenu items that belong to a manual
test application. The edit/context menu presents submenu items
well enough. Furthermore, reduce the amount of cruft in main.qml
by declaring the non-shared about action inline as a menu item
instead.

Change-Id: I1060a3ed63aa1a388e220fedddda4b7d5b412ba7
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
gallery: get rid of the dummy child window

This is material for a manual _desktop_ test application.

Change-Id: I9fe10ca05184410b53331bdd7b3157daaceb7640
Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
gallery: fix title

Change-Id: Ib637f850ed2002de10d7cb18e242f0b44482247c
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
gallery: cleanup whitespace

Change-Id: I82be07e215b1784039b1b3a2c5398d4fc0f19b84
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
gallery: cleanup old code commented out

Change-Id: I314be395ba82b89f89d6b84702e17f3adcabf1b1
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
iOS style: enhance cursor delegate

This patch fixes two issues:
1. The cursor should not blink while the user is typing. So when
    the cursor position changes, we restart the timer.
2. There is no need for the timer to be active if the cursor is
    not visible.

Change-Id: I01b194faf1f7fe9f9f9c6372bc611b4b45e61591
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
iOS: let TableViewStyle use aliases

Change-Id: I2de63405cebe2b1b20799990a0cd81c03121d17f
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Controls: Fixed support for Keys attached property on TableView

By forwarding key events from the internal control.

The key events from internal are Keys.forwardTo TableView, then user
could customize their own behavior.

Autotest are included.

[ChangeLog][TableView] Fixed support for Keys attached property, by
forwarding key events from the internal control.

Change-Id: Ic59273ae2589bf6d1a0ccf5babf8fd1741376e6c
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Improve Tab documentation.

- Make "api" uppercase.
- Document lazy loading behavior.

Change-Id: I8aea1b3acd80b1a63631ea9288830318fc173486
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Dialogs: Use native rendering on non-mobile platforms

Follow the same rule as in QtQuick.Controls: change
332ef31f0d1645eded5588729176134bbdcd38a2

Task-number: QTBUG-41734
Change-Id: I6d80e0312d3986b90952e43ffbddec1fe007fddb
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
QQuickPopupWindow: don't create 1x1 windows

Leave the popup window at its default size until the content size
is known instead of squeezing the window down to 1x1. This avoids
confusing the XCB platform plugin. It was receiving async native
resize events in wrong order so the content height stayed at 1px.

Task-number: QTBUG-41617
Task-number: QTBUG-41181
Change-Id: I2dd1312699554dcfe92fbcc6959fb38bbc6a3b46
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
TableView: correct event.accepted in key handlers

Autotest is included.

Task-number: QTBUG-41444
Change-Id: Ia3120b62a58361fbb13cd06e9c17b0e511cecace
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Dialogs: fix warning in DefaultWindowDecoration

content can be null

Change-Id: I69e63fa9f9652103dab7b295c06d56c18ee78933
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>