Add a function dumping out a GBMI stack trace of the V4 engine.

Add an exported C-function dumping the JS stack trace which can be
invoked by a debugger with the address of an execution context
it finds in a complete stack trace.

Task-number: QTCREATORBUG-11144
Change-Id: I5314f6b24868f12d4f9dedd1c261658957e581ba
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Merge pull request #24 from xhaakon/mer-stable

Add a function dumping out a GBMI stack trace of the V4 engine.
Warn at runtime about badly threaded calls to QQuickItem::update()

Change-Id: Ia3fc01f11ff28441d4ef095b520297a73e3399d6
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>

Conflicts:
	src/quick/scenegraph/qsgthreadedrenderloop.cpp
Merge pull request #25 from sletta/warn-on-bad-update

[qtdeclarative] Warn at runtime about badly threaded calls to QQuickItem::update()
[qtdeclarative] Packaging: exclude widgets properly

Change-Id: Ifabe23067f0bb731feebc929e70fc111d092a71e
Hard update to QtQml 5.3.0

This change is a copy of src/qml, src/3rdparty/masm and selected
other files from the 5.3.0 release tag, placed into the 5.2.1++
qtdeclarative tree.

It is an attempt to address the issues  that exist in the
earlier versions of V4 while keeping the rest of the declarative
library compatible.

Change-Id: Id83ae7456db8447f125d7f5a085bba5b5f661009
[qtdeclarative] cherry-pick of 39540124dd0900e0c99dcda8c0ebdf4f3cea8d5e
(patched to compile with this version of QtQml)

Fix interaction of QQuickItems with the garbage collector

The QObject ownership of QQuickItem objects is not accessible / mutable
in QML, because the parent property maps to the (dynamic) visual parent.

There are use-cases of creating QQuickItem objects without a QObject parent and
to support this, the visual parent needs to mark its visual children in order
to provide intuitive semantics.

[ChangeLog][QtQuick][Import Behavior Changes] A QQuick Item is now strongly
referenced by its visual parent item, so it doesn't require a QObject parent to
stay alive.

Task-number: QTBUG-35913
Change-Id: Ief2d40ac76298a0cf241ca73ff654c4ecfa12748
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Hard update to QtQml 5.3.1

Another copy of src/qml, src/masm into our repo to
address issues with ARM based JIT code and other issues.

Change-Id: I345344042a2feff98fa5d68e93f9d55c58518ac7
Use an offscreen surface in Canvas

Canvas elements using the default Immediate render strategy
and an FBO result in a failing makeCurrent() and subsequent
crashes due to trying to make the Quick window's surface current
on the gui thread while it is current on the scenegraph render thread.

The EGL spec disallows this explicitly and so the makeCurrent fails with
EGL_BAD_ACCESS. Others, like GLX, do not seem to have this issue since
the spec says nothing about this scenario.

To overcome this, a QOffscreenSurface is used instead since what the
canvas does (rendering into an FBO on a thread that is different than
the one on which the rest of the rendering happens) is a primary use
case for offscreen surfaces (pbuffers) anyway.

This makes demos like stocqt functional again.

Task-number: QTBUG-37772
Change-Id: Id89f71545154856415bbbe4fa924176b25b5086f
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Merge pull request #27 from sletta/canvas-crash-fix

[qtdeclarative] Use an offscreen surface in Canvas
Merge pull request #26 from sletta/packaging

[qtdeclarative] Packaging: exclude widgets properly
Fix crash on QQmlEngine destruction.

QQmlTypeLoader references QQmlImportDatabase in a thread, so change the
declaration order so QQmlTypeLoader is destroyed and its thread stopped
before QQmlImportDatabase is destroyed.

Change-Id: Idfa511cf9625f893c4398f419a74d869169b478d
Merge pull request #29 from mer-qt/QtQml-5.3

[qtdeclarative] Upgrade libQtQml to 5.3.1
Fix crash in Flickable with pressDelay.

Looks like this was exposed by the touch event compression change.
Avoid deadlock during window hiding.

Because we do event processing in polishAndSync, hide() or
handleObscurity() might have been called by the time we
continue execution. We already handled that windowDestroyed()
was called.

Change-Id: If45bcf3fa18cef1a60ca31bc26d3830045f581d9
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Merge pull request #31 from sletta/mer-stable

[qtdeclarative] Avoid deadlock during window hiding.
Fix QQmlDelegateModel ignoring layoutChange in certain situations

Fix a regression introduced by commit a0aefe1 which caused the model to
ignore layout changes if d->m_adaptorModel.rootIndex was just a descendant
of any of the parent indexes, or when no parent indexes at all were provided
in the notification.

Task-number: QTBUG-39492
Change-Id: I4c97929d25ef75947ccfcbbe5bc234096689c58d
Reviewed-by: Alan Alpert <aalpert@blackberry.com>

Conflicts:
	tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
[qtdeclarative] Pull in qsgthreadedrenderloop from upstream 'dev'

Use categorized logging for all things scenegraph.

Change-Id: I865ee838b0fd6c257b7189f24130012b98206fd1
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>

Conflicts:
	src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp
	src/quick/scenegraph/coreapi/qsgrenderer.cpp
	src/quick/scenegraph/qsgadaptationlayer.cpp
	src/quick/scenegraph/qsgcontext.cpp
	src/quick/scenegraph/qsgrenderloop.cpp
	src/quick/scenegraph/qsgthreadedrenderloop.cpp
	src/quick/scenegraph/qsgwindowsrenderloop.cpp
	src/quick/scenegraph/util/qsgatlastexture.cpp
	src/quick/scenegraph/util/qsgtexture.cpp
Merge pull request #32 from sletta/mer-stable

[qtdeclarative] Fix QQmlDelegateModel ignoring layoutChange in certain situations
Fix crash in Flickable with pressDelay.

Looks like this was exposed by the touch event compression change.

Task-number: QTBUG-40000
Change-Id: I037c848e0c5d766857dff3162c244213aba847da
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>