Update tst_qquickapplication to support OS X ApplicationState handling

This patch modifies tst_qquickapplication so that it tests correctly
against OS X's new ApplicationState handling

Task-number: QTBUG-10899
Change-Id: Iea20b0137daabe03fdddf98435dc2626e122741f
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Make sure we rebuild batches properly after a Blending material change.

If a node sent DirtyGeometry and DirtyMaterial in the same round and
DirtyGeometry triggered its batch to be invalidated, we would take the
no-batch code path which did set the rebuild state to BuildBatches. This
looks ok on screen, but if the node changed from alpha to opaque, it
would not be put into an opaque batch. For things like full screen
rectangles, this can potentially hurt performance.

To prevent doing a full rebuild on any material change on batchless
items (aka all Rectangle nodes), we store the blend state of the material
in the element and do a full rebuild only when blend state changes.

Change-Id: Ifdf06fb72ef02ca47a135c821ddbcbe0d164ca29
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Say hello to QQuickItem::grabToImage().

[ChangeLog][QtQuick][Item] Added functions QQuickItem::grabToImage()
and Item::grabToImage() to allow grabbing of items into
system-memory images.

Change-Id: I76cd73bb62f7440569c6fce63d63528559845721
Reviewed-by: Michael Brasser <michael.brasser@live.com>
Opt-in that QSGSimpleTextureNode can own the texture.

Having to subclass just to delete the texture is a bit
tedious.

Change-Id: I26c7e0b5c053ba70e004949ead748e50756d9b39
Reviewed-by: Michael Brasser <michael.brasser@live.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
doc: class QQuickCloseEvent added to module QtQuick

The wrong qdoc command had been used to add it to the
QML module QtQuick.Window. This caused a link to the
QML module to be not found by qdoc. The correct command
and C++ module name are now used.

Task-number: QTBUG-38529
Change-Id: I810f179d8f70dc8fb4d359ac3d4b192ef63ca429
Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>