TableView: make rowCount and columnCount read-only

Change-Id: Ia2f867293b15bdc82b4996818501397b6fa18f23
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Move examples into separate quick/controls directory

This makes sure all examples are in a separate directory for the
Qt source packages. It also is in line with how the other repositories
are structured.

Task-number: QTBUG-30886
Change-Id: Idc2856e5dfaf467c8cb9764aee327a3b20c7b2d0
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Move logic of effective size hints to effectiveSizeHints_helper

This enables us to find the effective size hints without allocating a
QQuickGridLayoutItem.

Change-Id: I827e3196c0a3979a2f6f5a0d6f3622cd6d121645
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Menu: Add __xOffset, __yOffset properties

These are for tweaking the popup position according to the current
style. First usage goes to ComboBox.

Also prepares for proper support of 'small' and 'mini' style hints.

Change-Id: I7bc682d5d82bf6fa7a36916a9d4c64dfb2bdb56e
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
StyleItem: Add support for 'small', 'mini' style hints

Currently supports Button and ComboBox.

Change-Id: I0c051e7c6f93d53861e6b8869f3fd3a9478cdee0
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Add TabView::moveTab(from, to)

Change-Id: I4996f5156b111d5dc40a50ff0c845bf0dc62ea27
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
TabView: use internally ListModel instead of JS array for tabs

Change-Id: I096571283dc66acbe86f75310b55d2da3ef808af
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Improve how child items are ignored/skipped

The previous code was a bit rough in how it determined if the item
was supposed to be ignored or not.

For instance, it did not ignore items with
 Layout.maximumWidth: 0
or
 Layout.preferredWidth: 0
 Layout.fillWidth: false

The following patch will use
QQuickLayoutItem::effectiveSizeHints_helper. Since that is now shared,
it should make the behavior more consistent.

The patch also fixes a bug where ignored items (e.g. a hidden item)
was not re-added to the layout if it became visible again. (QTBUG-30796)
We use a QSet to keep track of the ignored items, and repopulate the
layout if any of the items in the QSet changed some properties relevant
for the layout.

Task-number: QTBUG-30796

Change-Id: Ia4b0584ed61e1b24efaca322551f6bb1a4228ca6
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Button: Add 'menu' property to get pull-down button

Change-Id: I97ce3f35153beee2d7b1113880f25fd01904ce5f
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Remove unused tools/qmlwidget files.

Change-Id: Id48fea5609cb52b5a79d9ad345a07774112b26d2
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Fix incorrect selected text color in table view

We have to take the current focus state into account.

Task-number:30778
Change-Id: I95b519585e1e6221ac17b7c9d23700bf8132cb94
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
ComboBox: Arrays of strings don't have textRole.

Don't return a get function when the model is an array and
the return value is a string. So resolveTextValue() won't try
to retrieve a textRole in that case.

Change-Id: Ifc85eacc67accd34d63805487e20ae5829523c14
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Remove references to styles that don't even exist

Change-Id: Id2bbf2bb9d440bb9473f28699488fd58fa19f3f3
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Fix crash when Layout.fillWidth is put into QtObject {}

Change-Id: I89e86cf0fc3f6421e1dadd41771dfc689dcdeb8a
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Fix warning unused variable 'menu'

"warning: unused variable 'menu' [-Wunused-variable]"

Change-Id: Ie7cab810475a575f9ffa375380cf62d67c0bc836
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Compile fix: Move the static functions to the correct file.

These static function are only used by effectiveSizeHints_helper.
This broke because of commit 2b205db8514c0d64880edd77404b96460e5226bc

Change-Id: I189a59195d2576f4212b28fff4596bd803f25f49
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Add missing QT_{BEGIN|END}_NAMESPACE

Change-Id: I9312c49f54cd231dd1129e1dbbed93aa959f67f0
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Improve arrow pixmaps for scroll bars and combo box

Also adds @2x for retina displays.

Change-Id: I77937690b0990ee54404f0ff26540393b8f70248
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
ScrollBar: Fix horizontal arrows in widget-less style

Change-Id: I01b657135e94d9649e5773a7987439f50de48cdd
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
TableView: Fix sortIndicatorOrder property

Add this property to the testbench and also sortIndicatorVisible
and sortColumnIndex.

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