[qtdeclarative] Fix deadlock when QQmlEngine is destroyed during compilation.

Before blocking to wait for the thread to finish ensure the thread
itself is not waiting for the main thread to complete some action
otherwise both threads will be waiting on the same wait condition that
neither is able to wake.  Likewise ensure the shutdown action is
processed if the last scheduled event is currently being processed.
[declarative] Fix Flickable generated release event with pressDelay.
[qtdeclarative] Ensure Flickable bounds detection is executed at the end of animation.
Merge pull request #52 from martinjones/master

[qtdeclarative] Fix layout bounds with displayMargins.
Merge pull request #53 from martinjones/pixelAlignedBounds

[qtdeclarative] Ensure Flickable bounds detection is executed at the end...
Merge pull request #51 from martinjones/mousearea_release

[declarative] Fix Flickable generated release event with pressDelay.
Merge pull request #49 from adenexter/qqmlthread

[qtdeclarative] Fix deadlock when QQmlEngine is destroyed during compila...
[qtdeclarative] Ensure that ShaderEffectSource's texture has correct parameters.

The provider is created on demand in textureProvider(), but its
parameters are set in updatePaintNode() so if updatePaintNode() was
called before a consumer asked for the texture provider, they wouldn't
be set until the next time updatePaintNode() was called.

Change-Id: Iff866d50a8fe16f3d371cb8e590528f5f8c5ee61
Merge pull request #54 from sletta/master

[qtdeclarative] Ensure that ShaderEffectSource's texture has correct parameters.
[qtdeclarative] Don't crash due to KeyRelease on an unloaded Item.

commit cb9672c86d2679bcb0d9e10f76b12eb03f4c515e
Author: Shawn Rutledge <shawn.rutledge@digia.com>
Date:   Tue Aug 27 13:36:36 2013 +0200

Task-number: QTBUG-33127