Dialogs: correct C++ warnings

Initialization order, and mistaken use of comparison instead of
assignment.

Change-Id: Ic9fbcac1085d84294386311f967209a6b33f2297
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Revert "TextField/Area: soft dependency to inputMethodHints"

This broke the input method hints handling altogether. We will
fix this properly in QtQuickTextInput and QQuickTextEdit instead.
Nobody has even complained about QT_NO_IM, it was a hypothetical
problem brought up in code reviews.

This reverts commit c185d6cd67653b34f04a7999a84634de1f1063b0.

Change-Id: Ib81adba1ee899dd2a384bd83eea82d629eacb333
Reviewed-by: Samuel Nevala <samuel.nevala@digia.com>
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Fix menu/combobox popup positioning

Task-number: QTBUG-41113
Change-Id: Ic55657d42b44950356b176334d826b0a8d16e3cd
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Fix wrong menu popup window parenting

When embedded into a widget-based UI in a window container,
extra care is needed to find the correct top-level because
the QQuickWindow is not it.

Task-number: QTBUG-40883
Change-Id: I8d5a91f23c405e14b0994f08aa74581742f6482b
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Fix menu popups positioning with window containers

Task-number: QTBUG-40883
Change-Id: I5c46c049b5890259d65f325adb59e15ebf29f84a
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Merge remote-tracking branch 'origin/5.3.2' into 5.3

Change-Id: I91d1886e6081e39a1b5ea17b6c44d73b539889b1
Merge remote-tracking branch 'origin/5.3' into 5.4

Conflicts:
	src/controls/qquickmenupopupwindow.cpp

Change-Id: Ibc10e7da3b3a2983c022b8973cd80cb1a7e110af
Fix QQuickMenuBar::setNative()

Due to evaluation order, menus can be appended to the default property
before the native property is set => sync the items as appropriate.
Technically it's now even possible to toggle between a native and
non-native menubar even though it doesn't sound like a sane use-case.

Change-Id: I513f133a085ffd980a4000afe2a992cb47b7448e
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
import tst_dialogs from qtdeclarative

Change-Id: I3e3ee93de9f89aa2b674ac91f92aae93e3756167
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Revert "qquickmenu: implement support for __closeMenu when using native menus"

This showed not to be the correct solution, since hiding
a (sub) menu will make the menu appear removed from the
parent menu the next time the parent menu opens.

This reverts commit 1c40734f87fa10934d7cee430027b478c2ceaf58.

Change-Id: Ife071348c93d630ad372aea66fd848885aef032b
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
ComboBox: support toggle combobox menu visibility

Change-Id: If08cac41eef8dafcb45ce46c7cee7d499aa19c18
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Merge "Merge remote-tracking branch 'origin/5.3' into 5.4" into refs/staging/5.4
Add EditMenu to input controls

Add EditMenu to TextArea, TextField, ComboBox and
SpinBox.

Change-Id: Ic2fed55c467dde65334006d252f4052430f3f40c
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
EditMenu: add base implementation for desktop

This will add a default edit menu for TextArea, TextField
Combobox and Spinbox.

Change-Id: Ib310d20e9f8f8c17750d12cb181577838d600bd6
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Gallery: use new menu API for TextArea

Change-Id: I5caf76c8fb225760bc742b20e699c2cc40403e3c
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
EditMenu: let menu property be a component to lazy load it

Since all input fields have a menu assigned to it by
default (which in most cases never will be shown), it should
be an optimization to await creating it until needed.

Change-Id: I5777bbdae42103981e9b2f5ddfdfd763acea07ae
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Doc: link to "Qt Quick Dialogs" from "Qt Quick Controls"

Change-Id: I835ad22de52d92c1e59ae25978c02e1b56a728e4
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Button: trigger menu on touch release

Change-Id: Iee9f0105ef23fcb3ed2db7228f26c93d4491ac44
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Sticky virtual keyboard for TextField.

TextField closes software keyboard on done/enter pressed. In order to have
option for sticky keyboard, don't hide it when Qt.ImhMultiLine input method
hint is set.

Task-number: QTBUG-38282
Change-Id: Ic9bd2d2317336d1724d11f2ca55e67dc1fdab3cb
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Doc: add docs for Widget Gallery example

Change-Id: I42a4c583a2f3e1d1eb31f4e8c482181e5a01ef05
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>