TableView: fix touch selection behavior

Selection cannot happen on press - it could be a flick.

Change-Id: Iaac4ab375b4f8621a84da4bce330cfc7b38a1580
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Minor cleanup for TableViewStyle

No need to create two text items here

Change-Id: I4b32932bcee269c77f665172476ae17045773e81
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Doc: small doc fix

Change-Id: Ia4d5b0520973d4f82d0e2cb1fc1eca32e3a2c3e5
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Fix crash with TableView on android and show alternating rows when empty

We were dividing by 0 when there were no visible rows on android.
This fixes the issue and ensures there are alternating rows also
when the view is empty.

Change-Id: I1ed84235418d50ed476a7424285c52446a355095
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Fix broken tab rendering for TabView

There was a missing change notification on the paintMargins
property. This was not caused, but simply triggered by the
change to v4.

Change-Id: Icf055d222bac39bd77cb4d3dc2f4c4c90ac629eb
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Menu: fix runtime warning

Menu.qml:292: TypeError: Cannot read property 'visible' of undefined

Change-Id: I95cebf3a45e4ef5d663e344a8d716a0a5810d0ad
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Menu: Put popup mouse area over list view

Task-number: QTBUG-34034
Change-Id: Ie54e02e742cbc51ed65c53180741505e48faadca
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Improved font scalability for Base style

This should make it useable on hight dpi
tablets and desktops where font sizes are
larger.

Change-Id: I8c8e7688927a0b54e3f95c276c743aaa31e8a4d9
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Some TableView optimization for v4

Ironically we had previous optimizations to force v4 bindings,
which now causes a number of exceptions in the engine.
Some of the bindings have also been simplified.

Change-Id: Iaed0c9dbb2d01aeaed25f2ada571dd8177a5b7c2
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Fix some issues in the modelview example

The edit menu was never implemented and should not be exposed.
Fading out the combo box is not really intuitive and doesnt actually
disable the control.

task-number: QTBUG-33818
Change-Id: I76190b675fd9400caac2754277ba9960b7f6dd06
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Menu: Remove reported warning

Reported as a comment here,
https://bugreports.qt-project.org/browse/QTBUG-31568

Change-Id: I84df10a584d09bd25359b9120d5e219bdf1bf9d3
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Qt Quick Layouts: Some small documentation refinements.

Document the unreliability of width and height.

Move the docs on how preferred size is determined to the overview
document instead of keeping it in the documentation for the Layout.*
attached property documentation, because its scope extends beyond this
class.

Task-number: QTBUG-34045 (inspired by)

Change-Id: Ie16f7d151b867aa45caf8e8e589f92ffd82e3220
Reviewed-by: Nico Vertriest <nico.vertriest@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
TextField: Also hide placeholderText when text input is composing

Change-Id: I33acdb7edfb6f9792e36e0f9472f0de66ce788d5
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Remove widget dependency on touch platforms

We don't want native styling on touch enabled devices and there is no
reason to link against widgets there.

Change-Id: I70116a0a94227cb58ae25980b97c4177da75a3c8
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Menu: Factor MenuContentItem out

Preliminary patch to get non-windowed menus on Android, iOS, etc.

Change-Id: Idc17009baa3a647ec2fbc353f1360fb9ca9e051a
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Menu: Extract QQuickMenuPopupWindow core popup behavior

... and put it in QQuickPopupWindow.

Change-Id: I6920f5c13904483310faae990c7199db9f1c4708
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Fix disabling of Action

A disabled action was reported as ambiguous with a non-amb. one. Instead
just ignore the disabled one.

Change-Id: I6e03b126a5ef1dddc2342c5c2b27ff6541839e33
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Expose renderType to SpinBox and TextField

This is useful in case you want to create your own scaling
styled controls.

Task-number: QTBUG-33917

Change-Id: I0d641319a3106b8e0971d0aae69799bc1aff7f78
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
Cosmetic tweaks for base style

- Now using more consitent image margins.
- Simplified and cleaned up the artwork.
- Reduced height of progress bar
- Added animation on hover

Change-Id: Idb030018e1c58c6f197f4fd5007727ef73d3ae88
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Fix warning in ComboBox when model is empty

We cannot assign null to a QString property.

Change-Id: I659a7edcefe586e37330ee56ec52756585c147e1
Task-number: QTBUG-34164
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>