[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.
Merge pull request #50 from mbrasser-jolla/master

Use platform specified duration for triggering MouseArea::onPressAndHold...
[declarative] Fix Flickable generated release event with pressDelay.
[qtdeclarative] Fix layout bounds with displayMargins.
[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.
QQuickTimeLine: add missing time checks

The same check is done in QQuickTimeLine::pause(), move() and moveBy(),
where the time is passed as an argument. QQuickTimeLine::accel() and
accelDistance() calculate the time based on velocity and acceleration
or distance. With tiny values this calculation can result to a negative
time due to integer overflow.

Task-number: QTBUG-35046
Change-Id: I000e73d3f787375946e8f87a5d24153ae919bc8d
Reviewed-by: Michael Brasser <michael.brasser@live.com>